Home
last modified time | relevance | path

Searched refs:azx_dev (Results 1 – 9 of 9) sorted by relevance

/linux-4.4.14/sound/hda/
Dhdac_stream.c25 void snd_hdac_stream_init(struct hdac_bus *bus, struct hdac_stream *azx_dev, in snd_hdac_stream_init() argument
28 azx_dev->bus = bus; in snd_hdac_stream_init()
30 azx_dev->sd_addr = bus->remap_addr + (0x20 * idx + 0x80); in snd_hdac_stream_init()
32 azx_dev->sd_int_sta_mask = 1 << idx; in snd_hdac_stream_init()
33 azx_dev->index = idx; in snd_hdac_stream_init()
34 azx_dev->direction = direction; in snd_hdac_stream_init()
35 azx_dev->stream_tag = tag; in snd_hdac_stream_init()
36 snd_hdac_dsp_lock_init(azx_dev); in snd_hdac_stream_init()
37 list_add_tail(&azx_dev->list, &bus->stream_list); in snd_hdac_stream_init()
48 void snd_hdac_stream_start(struct hdac_stream *azx_dev, bool fresh_start) in snd_hdac_stream_start() argument
[all …]
Dtrace.h55 TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
57 TP_ARGS(bus, azx_dev),
64 __entry->stream_tag = (azx_dev)->stream_tag;
71 TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
72 TP_ARGS(bus, azx_dev)
76 TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
77 TP_ARGS(bus, azx_dev)
Dhdac_controller.c335 struct hdac_stream *azx_dev; in azx_int_disable() local
338 list_for_each_entry(azx_dev, &bus->stream_list, list) in azx_int_disable()
339 snd_hdac_stream_updateb(azx_dev, SD_CTL, SD_INT_MASK, 0); in azx_int_disable()
351 struct hdac_stream *azx_dev; in azx_int_clear() local
354 list_for_each_entry(azx_dev, &bus->stream_list, list) in azx_int_clear()
355 snd_hdac_stream_writeb(azx_dev, SD_STS, SD_INT_MASK); in azx_int_clear()
434 struct hdac_stream *azx_dev; in snd_hdac_bus_handle_stream_irq() local
437 list_for_each_entry(azx_dev, &bus->stream_list, list) { in snd_hdac_bus_handle_stream_irq()
438 if (status & azx_dev->sd_int_sta_mask) { in snd_hdac_bus_handle_stream_irq()
439 sd_status = snd_hdac_stream_readb(azx_dev, SD_STS); in snd_hdac_bus_handle_stream_irq()
[all …]
/linux-4.4.14/sound/pci/hda/
Dhda_controller_trace.h11 struct azx_dev;
15 TP_PROTO(struct azx *chip, struct azx_dev *dev, int cmd),
36 TP_PROTO(struct azx *chip, struct azx_dev *dev, unsigned int pos, unsigned int delay),
58 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev),
60 TP_ARGS(chip, azx_dev),
67 __entry->stream_tag = (azx_dev)->core.stream_tag;
74 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev),
75 TP_ARGS(chip, azx_dev)
79 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev),
80 TP_ARGS(chip, azx_dev)
[all …]
Dhda_controller.c43 static inline struct azx_dev *
55 static inline void azx_release_device(struct azx_dev *azx_dev) in azx_release_device() argument
57 snd_hdac_stream_release(azx_stream(azx_dev)); in azx_release_device()
96 struct azx_dev *azx_dev = get_azx_dev(substream); in azx_pcm_close() local
98 trace_azx_pcm_close(chip, azx_dev); in azx_pcm_close()
100 azx_release_device(azx_dev); in azx_pcm_close()
114 struct azx_dev *azx_dev = get_azx_dev(substream); in azx_pcm_hw_params() local
117 trace_azx_pcm_hw_params(chip, azx_dev); in azx_pcm_hw_params()
118 dsp_lock(azx_dev); in azx_pcm_hw_params()
119 if (dsp_is_locked(azx_dev)) { in azx_pcm_hw_params()
[all …]
Dhda_controller.h61 struct azx_dev { struct
75 #define stream_to_azx_dev(s) container_of(s, struct azx_dev, core) argument
91 int (*position_check)(struct azx *chip, struct azx_dev *azx_dev);
104 typedef unsigned int (*azx_get_pos_callback_t)(struct azx *, struct azx_dev *);
105 typedef int (*azx_get_delay_callback_t)(struct azx *, struct azx_dev *, unsigned int pos);
159 struct azx_dev saved_azx_dev;
193 static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream) in get_azx_dev()
197 unsigned int azx_get_position(struct azx *chip, struct azx_dev *azx_dev);
198 unsigned int azx_get_pos_lpib(struct azx *chip, struct azx_dev *azx_dev);
199 unsigned int azx_get_pos_posbuf(struct azx *chip, struct azx_dev *azx_dev);
Dhda_intel.c422 static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev, in mark_runtime_wc() argument
425 if (azx_dev->wc_marked != on) { in mark_runtime_wc()
427 azx_dev->wc_marked = on; in mark_runtime_wc()
436 static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev, in mark_runtime_wc() argument
563 static int azx_get_delay_from_lpib(struct azx *chip, struct azx_dev *azx_dev, in azx_get_delay_from_lpib() argument
566 struct snd_pcm_substream *substream = azx_dev->core.substream; in azx_get_delay_from_lpib()
568 unsigned int lpib_pos = azx_get_pos_lpib(chip, azx_dev); in azx_get_delay_from_lpib()
576 if (delay >= azx_dev->core.delay_negative_threshold) in azx_get_delay_from_lpib()
579 delay += azx_dev->core.bufsize; in azx_get_delay_from_lpib()
582 if (delay >= azx_dev->core.period_bytes) { in azx_get_delay_from_lpib()
[all …]
/linux-4.4.14/include/sound/
Dhdaudio.h435 void snd_hdac_stream_init(struct hdac_bus *bus, struct hdac_stream *azx_dev,
439 void snd_hdac_stream_release(struct hdac_stream *azx_dev);
443 int snd_hdac_stream_setup(struct hdac_stream *azx_dev);
444 void snd_hdac_stream_cleanup(struct hdac_stream *azx_dev);
445 int snd_hdac_stream_setup_periods(struct hdac_stream *azx_dev);
446 int snd_hdac_stream_set_params(struct hdac_stream *azx_dev,
448 void snd_hdac_stream_start(struct hdac_stream *azx_dev, bool fresh_start);
449 void snd_hdac_stream_clear(struct hdac_stream *azx_dev);
450 void snd_hdac_stream_stop(struct hdac_stream *azx_dev);
451 void snd_hdac_stream_reset(struct hdac_stream *azx_dev);
[all …]
Dhdaudio_ext.h110 void snd_hdac_ext_stream_release(struct hdac_ext_stream *azx_dev, int type);
112 struct hdac_ext_stream *azx_dev, bool decouple);