| /linux/sound/hda/core/ |
| H A D | stream.c | 87 * @azx_dev: HD-audio core stream object to initialize 94 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 in snd_hdac_stream_init() 130 snd_hdac_stream_start(struct hdac_stream * azx_dev) snd_hdac_stream_start() argument 167 snd_hdac_stream_clear(struct hdac_stream * azx_dev) snd_hdac_stream_clear() argument 183 snd_hdac_stream_stop(struct hdac_stream * azx_dev) snd_hdac_stream_stop() argument 224 snd_hdac_stream_reset(struct hdac_stream * azx_dev) snd_hdac_stream_reset() argument 257 snd_hdac_stream_setup(struct hdac_stream * azx_dev,bool code_loading) snd_hdac_stream_setup() argument 339 snd_hdac_stream_cleanup(struct hdac_stream * azx_dev) snd_hdac_stream_cleanup() argument 364 struct hdac_stream *azx_dev; snd_hdac_stream_assign() local 403 snd_hdac_stream_release_locked(struct hdac_stream * azx_dev) snd_hdac_stream_release_locked() argument 417 snd_hdac_stream_release(struct hdac_stream * azx_dev) snd_hdac_stream_release() argument 453 setup_bdle(struct hdac_bus * bus,struct snd_dma_buffer * dmab,struct hdac_stream * azx_dev,__le32 ** bdlp,int ofs,int size,int with_ioc) setup_bdle() argument 501 snd_hdac_stream_setup_bdle(struct hdac_stream * azx_dev,struct snd_dma_buffer * dmab,struct snd_pcm_runtime * runtime) snd_hdac_stream_setup_bdle() argument 569 snd_hdac_stream_setup_periods(struct hdac_stream * azx_dev) snd_hdac_stream_setup_periods() argument 598 snd_hdac_stream_set_params(struct hdac_stream * azx_dev,unsigned int format_val) snd_hdac_stream_set_params() argument 637 struct hdac_stream *azx_dev = container_of(cc, struct hdac_stream, cc); azx_cc_read() local 642 azx_timecounter_init(struct hdac_stream * azx_dev,bool force,u64 last) azx_timecounter_init() argument 681 snd_hdac_stream_timecounter_init(struct hdac_stream * azx_dev,unsigned int streams,bool start) snd_hdac_stream_timecounter_init() argument 716 snd_hdac_stream_sync_trigger(struct hdac_stream * azx_dev,bool set,unsigned int streams,unsigned int reg) snd_hdac_stream_sync_trigger() argument 742 snd_hdac_stream_sync(struct hdac_stream * azx_dev,bool start,unsigned int streams) snd_hdac_stream_sync() argument 813 snd_hdac_stream_set_spib(struct hdac_bus * bus,struct hdac_stream * azx_dev,u32 value) snd_hdac_stream_set_spib() argument 857 snd_hdac_stream_wait_drsm(struct hdac_stream * azx_dev) snd_hdac_stream_wait_drsm() argument 880 snd_hdac_stream_set_dpibr(struct hdac_bus * bus,struct hdac_stream * azx_dev,u32 value) snd_hdac_stream_set_dpibr() argument 898 snd_hdac_stream_set_lpib(struct hdac_stream * azx_dev,u32 value) snd_hdac_stream_set_lpib() argument 917 snd_hdac_dsp_prepare(struct hdac_stream * azx_dev,unsigned int format,unsigned int byte_size,struct snd_dma_buffer * bufp) snd_hdac_dsp_prepare() argument 966 snd_hdac_dsp_trigger(struct hdac_stream * azx_dev,bool start) snd_hdac_dsp_trigger() argument 980 snd_hdac_dsp_cleanup(struct hdac_stream * azx_dev,struct snd_dma_buffer * dmab) snd_hdac_dsp_cleanup() argument [all...] |
| H A D | trace.h | 67 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 D | controller.c | 578 struct hdac_stream *azx_dev; in azx_int_disable() 581 list_for_each_entry(azx_dev, &bus->stream_list, list) in azx_int_disable() 583 snd_hdac_stream_updatel(azx_dev, SD_CTL, SD_INT_MASK, 0); in azx_int_disable() 585 snd_hdac_stream_updateb(azx_dev, SD_CTL, SD_INT_MASK, 0); 594 struct hdac_stream *azx_dev; in azx_int_clear() 597 list_for_each_entry(azx_dev, &bus->stream_list, list) in azx_int_clear() 598 snd_hdac_stream_writeb(azx_dev, SD_STS, SD_INT_MASK); in azx_int_clear() 682 struct hdac_stream *azx_dev; in snd_hdac_bus_handle_stream_irq() 686 list_for_each_entry(azx_dev, &bus->stream_list, list) { in snd_hdac_bus_handle_stream_irq() 687 if (status & azx_dev in snd_hdac_bus_handle_stream_irq() 575 struct hdac_stream *azx_dev; azx_int_disable() local 588 struct hdac_stream *azx_dev; azx_int_clear() local 676 struct hdac_stream *azx_dev; snd_hdac_bus_handle_stream_irq() local [all...] |
| /linux/sound/hda/common/ |
| H A D | 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 …]
|
| H A D | controller.c | 43 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 D | hda_controller.h | 57 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/sound/hda/controllers/ |
| H A D | intel.c | 586 static int azx_get_delay_from_lpib(struct azx *chip, struct azx_dev *azx_dev, in azx_get_delay_from_lpib() argument 589 struct snd_pcm_substream *substream = azx_dev->core.substream; in azx_get_delay_from_lpib() 591 unsigned int lpib_pos = azx_get_pos_lpib(chip, azx_dev); in azx_get_delay_from_lpib() 599 if (delay >= azx_dev->core.delay_negative_threshold) in azx_get_delay_from_lpib() 602 delay += azx_dev->core.bufsize; in azx_get_delay_from_lpib() 605 if (delay >= azx_dev->core.period_bytes) { in azx_get_delay_from_lpib() 608 delay, azx_dev->core.period_bytes); in azx_get_delay_from_lpib() 617 static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev); 620 static int azx_position_check(struct azx *chip, struct azx_dev *azx_dev) in azx_position_check() argument 622 struct hda_intel_stream *istream = azx_dev_to_istream(azx_dev); in azx_position_check() [all …]
|
| /linux/include/sound/ |
| H A D | hdaudio.h | 573 void snd_hdac_stream_init(struct hdac_bus *bus, struct hdac_stream *azx_dev, 577 void snd_hdac_stream_release_locked(struct hdac_stream *azx_dev); 578 void snd_hdac_stream_release(struct hdac_stream *azx_dev); 582 int snd_hdac_stream_setup(struct hdac_stream *azx_dev, bool code_loading); 583 void snd_hdac_stream_cleanup(struct hdac_stream *azx_dev); 584 int snd_hdac_stream_setup_periods(struct hdac_stream *azx_dev); 585 int snd_hdac_stream_set_params(struct hdac_stream *azx_dev, 587 void snd_hdac_stream_start(struct hdac_stream *azx_dev); 588 void snd_hdac_stream_stop(struct hdac_stream *azx_dev); 591 void snd_hdac_stream_reset(struct hdac_stream *azx_dev); [all …]
|
| H A D | hdaudio_ext.h | 87 struct hdac_ext_stream *azx_dev, bool decouple);
|