/Linux-v4.19/sound/hda/ |
D | hdac_stream.c | 25 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 …]
|
D | trace.h | 56 TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev), 58 TP_ARGS(bus, azx_dev), 65 __entry->stream_tag = (azx_dev)->stream_tag; 72 TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev), 73 TP_ARGS(bus, azx_dev) 77 TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev), 78 TP_ARGS(bus, azx_dev)
|
D | hdac_controller.c | 440 struct hdac_stream *azx_dev; in azx_int_disable() local 443 list_for_each_entry(azx_dev, &bus->stream_list, list) in azx_int_disable() 444 snd_hdac_stream_updateb(azx_dev, SD_CTL, SD_INT_MASK, 0); in azx_int_disable() 456 struct hdac_stream *azx_dev; in azx_int_clear() local 459 list_for_each_entry(azx_dev, &bus->stream_list, list) in azx_int_clear() 460 snd_hdac_stream_writeb(azx_dev, SD_STS, SD_INT_MASK); in azx_int_clear() 543 struct hdac_stream *azx_dev; in snd_hdac_bus_handle_stream_irq() local 547 list_for_each_entry(azx_dev, &bus->stream_list, list) { in snd_hdac_bus_handle_stream_irq() 548 if (status & azx_dev->sd_int_sta_mask) { in snd_hdac_bus_handle_stream_irq() 549 sd_status = snd_hdac_stream_readb(azx_dev, SD_STS); in snd_hdac_bus_handle_stream_irq() [all …]
|
/Linux-v4.19/sound/pci/hda/ |
D | hda_controller_trace.h | 12 struct azx_dev; 16 TP_PROTO(struct azx *chip, struct azx_dev *dev, int cmd), 37 TP_PROTO(struct azx *chip, struct azx_dev *dev, unsigned int pos, unsigned int delay), 59 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev), 61 TP_ARGS(chip, azx_dev), 68 __entry->stream_tag = (azx_dev)->core.stream_tag; 75 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev), 76 TP_ARGS(chip, azx_dev) 80 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev), 81 TP_ARGS(chip, azx_dev) [all …]
|
D | hda_controller.c | 49 static inline struct azx_dev * 61 static inline void azx_release_device(struct azx_dev *azx_dev) in azx_release_device() argument 63 snd_hdac_stream_release(azx_stream(azx_dev)); in azx_release_device() 102 struct azx_dev *azx_dev = get_azx_dev(substream); in azx_pcm_close() local 104 trace_azx_pcm_close(chip, azx_dev); in azx_pcm_close() 106 azx_release_device(azx_dev); in azx_pcm_close() 120 struct azx_dev *azx_dev = get_azx_dev(substream); in azx_pcm_hw_params() local 123 trace_azx_pcm_hw_params(chip, azx_dev); in azx_pcm_hw_params() 124 dsp_lock(azx_dev); in azx_pcm_hw_params() 125 if (dsp_is_locked(azx_dev)) { in azx_pcm_hw_params() [all …]
|
D | hda_controller.h | 69 struct azx_dev { struct 83 #define stream_to_azx_dev(s) container_of(s, struct azx_dev, core) argument 99 int (*position_check)(struct azx *chip, struct azx_dev *azx_dev); 112 typedef unsigned int (*azx_get_pos_callback_t)(struct azx *, struct azx_dev *); 113 typedef int (*azx_get_delay_callback_t)(struct azx *, struct azx_dev *, unsigned int pos); 171 struct azx_dev saved_azx_dev; 205 static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream) in get_azx_dev() 209 unsigned int azx_get_position(struct azx *chip, struct azx_dev *azx_dev); 210 unsigned int azx_get_pos_lpib(struct azx *chip, struct azx_dev *azx_dev); 211 unsigned int azx_get_pos_posbuf(struct azx *chip, struct azx_dev *azx_dev);
|
D | hda_intel.c | 437 static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev, in mark_runtime_wc() argument 440 if (azx_dev->wc_marked != on) { in mark_runtime_wc() 442 azx_dev->wc_marked = on; in mark_runtime_wc() 451 static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev, in mark_runtime_wc() argument 674 static int azx_get_delay_from_lpib(struct azx *chip, struct azx_dev *azx_dev, in azx_get_delay_from_lpib() argument 677 struct snd_pcm_substream *substream = azx_dev->core.substream; in azx_get_delay_from_lpib() 679 unsigned int lpib_pos = azx_get_pos_lpib(chip, azx_dev); in azx_get_delay_from_lpib() 687 if (delay >= azx_dev->core.delay_negative_threshold) in azx_get_delay_from_lpib() 690 delay += azx_dev->core.bufsize; in azx_get_delay_from_lpib() 693 if (delay >= azx_dev->core.period_bytes) { in azx_get_delay_from_lpib() [all …]
|
/Linux-v4.19/include/sound/ |
D | hdaudio.h | 515 void snd_hdac_stream_init(struct hdac_bus *bus, struct hdac_stream *azx_dev, 519 void snd_hdac_stream_release(struct hdac_stream *azx_dev); 523 int snd_hdac_stream_setup(struct hdac_stream *azx_dev); 524 void snd_hdac_stream_cleanup(struct hdac_stream *azx_dev); 525 int snd_hdac_stream_setup_periods(struct hdac_stream *azx_dev); 526 int snd_hdac_stream_set_params(struct hdac_stream *azx_dev, 528 void snd_hdac_stream_start(struct hdac_stream *azx_dev, bool fresh_start); 529 void snd_hdac_stream_clear(struct hdac_stream *azx_dev); 530 void snd_hdac_stream_stop(struct hdac_stream *azx_dev); 531 void snd_hdac_stream_reset(struct hdac_stream *azx_dev); [all …]
|
D | hdaudio_ext.h | 91 void snd_hdac_ext_stream_release(struct hdac_ext_stream *azx_dev, int type); 93 struct hdac_ext_stream *azx_dev, bool decouple);
|