Home
last modified time | relevance | path

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

/linux/sound/hda/core/
H A Dstream.c94 void snd_hdac_stream_init(struct hdac_bus *bus, struct hdac_stream *azx_dev, in snd_hdac_stream_init() argument
97 azx_dev->bus = bus; in snd_hdac_stream_init()
99 azx_dev->sd_addr = bus->remap_addr + (0x20 * idx + 0x80); in snd_hdac_stream_init()
101 azx_dev->sd_int_sta_mask = 1 << idx; in snd_hdac_stream_init()
102 azx_dev->index = idx; in snd_hdac_stream_init()
103 azx_dev->direction = direction; in snd_hdac_stream_init()
104 azx_dev->stream_tag = tag; in snd_hdac_stream_init()
105 snd_hdac_dsp_lock_init(azx_dev); in snd_hdac_stream_init()
106 list_add_tail(&azx_dev->list, &bus->stream_list); in snd_hdac_stream_init()
109 azx_dev->spib_addr = bus->spbcap + AZX_SPB_BASE + in snd_hdac_stream_init()
[all …]
H A Dtrace.h67 TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
69 TP_ARGS(bus, azx_dev),
76 __entry->stream_tag = (azx_dev)->stream_tag;
83 TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
84 TP_ARGS(bus, azx_dev)
88 TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
89 TP_ARGS(bus, azx_dev)
H A Dcontroller.c575 struct hdac_stream *azx_dev; in azx_int_disable() local
578 list_for_each_entry(azx_dev, &bus->stream_list, list) in azx_int_disable()
579 snd_hdac_stream_updateb(azx_dev, SD_CTL, SD_INT_MASK, 0); in azx_int_disable()
588 struct hdac_stream *azx_dev; in azx_int_clear() local
591 list_for_each_entry(azx_dev, &bus->stream_list, list) in azx_int_clear()
592 snd_hdac_stream_writeb(azx_dev, SD_STS, SD_INT_MASK); in azx_int_clear()
676 struct hdac_stream *azx_dev; in snd_hdac_bus_handle_stream_irq() local
680 list_for_each_entry(azx_dev, &bus->stream_list, list) { in snd_hdac_bus_handle_stream_irq()
681 if (status & azx_dev->sd_int_sta_mask) { in snd_hdac_bus_handle_stream_irq()
682 sd_status = snd_hdac_stream_readb(azx_dev, SD_STS); in snd_hdac_bus_handle_stream_irq()
[all …]
/linux/sound/hda/common/
H A Dcontroller_trace.h12 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 …]
H A Dcontroller.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()
101 chip->ops->pcm_close(chip, azx_dev); in azx_pcm_close()
102 azx_release_device(azx_dev); in azx_pcm_close()
116 struct azx_dev *azx_de in azx_pcm_hw_params()
114 struct azx_dev *azx_dev = get_azx_dev(substream); azx_pcm_hw_params() local
138 struct azx_dev *azx_dev = get_azx_dev(substream); azx_pcm_hw_free() local
156 struct azx_dev *azx_dev = get_azx_dev(substream); azx_pcm_prepare() local
206 struct azx_dev *azx_dev; azx_pcm_trigger() local
274 azx_get_pos_lpib(struct azx * chip,struct azx_dev * azx_dev) azx_get_pos_lpib() argument
280 azx_get_pos_posbuf(struct azx * chip,struct azx_dev * azx_dev) azx_get_pos_posbuf() argument
287 azx_get_position(struct azx * chip,struct azx_dev * azx_dev) azx_get_position() argument
323 struct azx_dev *azx_dev = get_azx_dev(substream); azx_pcm_pointer() local
364 struct azx_dev *azx_dev = get_azx_dev(substream); azx_get_sync_time() local
492 struct azx_dev *azx_dev = get_azx_dev(substream); azx_get_time_info() local
579 struct azx_dev *azx_dev; azx_pcm_open() local
958 struct azx_dev *azx_dev; snd_hda_codec_load_dsp_prepare() local
989 struct azx_dev *azx_dev = azx_get_dsp_loader_dev(chip); snd_hda_codec_load_dsp_trigger() local
1000 struct azx_dev *azx_dev = azx_get_dsp_loader_dev(chip); snd_hda_codec_load_dsp_cleanup() local
1048 struct azx_dev *azx_dev = stream_to_azx_dev(s); stream_update() local
1286 struct azx_dev *azx_dev = kzalloc_obj(*azx_dev); azx_init_streams() local
[all...]
H A Dhda_controller.h57 struct azx_dev { struct
69 #define stream_to_azx_dev(s) container_of(s, struct azx_dev, core)
78 int (*position_check)(struct azx *chip, struct azx_dev *azx_dev);
82 void (*pcm_close)(struct azx *chip, struct azx_dev *azx_dev);
93 typedef unsigned int (*azx_get_pos_callback_t)(struct azx *, struct azx_dev *);
94 typedef int (*azx_get_delay_callback_t)(struct azx *, struct azx_dev *, unsigned int pos);
148 struct azx_dev saved_azx_dev;
181 static inline struct azx_dev *get_azx_de in get_azx_dev()
70 insufficientazx_dev global() argument
[all...]
/linux/include/sound/
H A Dhdaudio.h572 void snd_hdac_stream_init(struct hdac_bus *bus, struct hdac_stream *azx_dev,
576 void snd_hdac_stream_release_locked(struct hdac_stream *azx_dev);
577 void snd_hdac_stream_release(struct hdac_stream *azx_dev);
581 int snd_hdac_stream_setup(struct hdac_stream *azx_dev, bool code_loading);
582 void snd_hdac_stream_cleanup(struct hdac_stream *azx_dev);
583 int snd_hdac_stream_setup_periods(struct hdac_stream *azx_dev);
584 int snd_hdac_stream_set_params(struct hdac_stream *azx_dev,
586 void snd_hdac_stream_start(struct hdac_stream *azx_dev);
587 void snd_hdac_stream_stop(struct hdac_stream *azx_dev);
590 void snd_hdac_stream_reset(struct hdac_stream *azx_dev);
[all …]
H A Dhdaudio_ext.h87 struct hdac_ext_stream *azx_dev, bool decouple);
/linux/sound/hda/controllers/
H A Dintel.c582 static int azx_get_delay_from_lpib(struct azx *chip, struct azx_dev *azx_dev, in azx_get_delay_from_lpib() argument
585 struct snd_pcm_substream *substream = azx_dev->core.substream; in azx_get_delay_from_lpib()
587 unsigned int lpib_pos = azx_get_pos_lpib(chip, azx_dev); in azx_get_delay_from_lpib()
595 if (delay >= azx_dev->core.delay_negative_threshold) in azx_get_delay_from_lpib()
598 delay += azx_dev->core.bufsize; in azx_get_delay_from_lpib()
601 if (delay >= azx_dev->core.period_bytes) { in azx_get_delay_from_lpib()
604 delay, azx_dev->core.period_bytes); in azx_get_delay_from_lpib()
613 static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev);
616 azx_position_check(struct azx * chip,struct azx_dev * azx_dev) azx_position_check() argument
647 azx_position_ok(struct azx * chip,struct azx_dev * azx_dev) azx_position_ok() argument
741 struct azx_dev *azx_dev = stream_to_azx_dev(s); azx_irq_pending_work() local
772 struct azx_dev *azx_dev = stream_to_azx_dev(s); azx_clear_irq_pending() local
806 azx_via_get_position(struct azx * chip,struct azx_dev * azx_dev) azx_via_get_position() argument
860 azx_get_pos_fifo(struct azx * chip,struct azx_dev * azx_dev) azx_get_pos_fifo() argument
891 azx_get_delay_from_fifo(struct azx * chip,struct azx_dev * azx_dev,unsigned int pos) azx_get_delay_from_fifo() argument
[all...]