| /linux/sound/hda/core/ext/ |
| H A D | stream.c | 28 int snd_hdac_ext_host_stream_setup(struct hdac_ext_stream *hext_stream, bool code_loading) in snd_hdac_ext_host_stream_setup() argument 30 return hext_stream->host_setup(hdac_stream(hext_stream), code_loading); in snd_hdac_ext_host_stream_setup() 44 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); in snd_hdac_apl_host_stream_setup() local 47 snd_hdac_ext_stream_decouple(hstream->bus, hext_stream, false); in snd_hdac_apl_host_stream_setup() 49 snd_hdac_ext_stream_decouple(hstream->bus, hext_stream, true); in snd_hdac_apl_host_stream_setup() 66 struct hdac_ext_stream *hext_stream, in snd_hdac_ext_stream_init() argument 70 hext_stream->pphc_addr = bus->ppcap + AZX_PPHC_BASE + in snd_hdac_ext_stream_init() 73 hext_stream->pplc_addr = bus->ppcap + AZX_PPLC_BASE + in snd_hdac_ext_stream_init() 78 hext_stream->decoupled = false; in snd_hdac_ext_stream_init() 79 snd_hdac_stream_init(bus, &hext_stream->hstream, idx, direction, tag); in snd_hdac_ext_stream_init() [all …]
|
| /linux/sound/soc/sof/intel/ |
| H A D | hda-dai.c | 118 struct hdac_ext_stream *hext_stream, in hda_link_dma_cleanup() 139 stream_tag = hdac_stream(hext_stream)->stream_tag; in hda_link_dma_cleanup() 150 hext_stream->link_prepared = 0; in hda_link_dma_cleanup() 157 hext_stream->link_prepared = 0; in hda_link_dma_hw_params() 160 hda_stream = hstream_to_sof_hda_stream(hext_stream); in hda_link_dma_hw_params() local 170 struct hdac_ext_stream *hext_stream; in hda_link_dma_hw_params() 187 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream); in hda_link_dma_hw_params() 189 if (!hext_stream) { in hda_link_dma_hw_params() 191 hext_stream = ops->assign_hext_stream(sdev, cpu_dai, substream); in hda_link_dma_hw_params() 194 if (!hext_stream) in hda_link_dma_hw_params() 108 hda_link_dma_cleanup(struct snd_pcm_substream * substream,struct hdac_ext_stream * hext_stream,struct snd_soc_dai * cpu_dai,bool release) hda_link_dma_cleanup() argument 215 struct hdac_ext_stream *hext_stream; hda_dai_hw_free() local 238 struct hdac_ext_stream *hext_stream; hda_dai_hw_params_data() local 281 struct hdac_ext_stream *hext_stream; hda_dai_trigger() local 374 struct hdac_ext_stream *hext_stream; non_hda_dai_hw_params_data() local 497 struct hdac_ext_stream *hext_stream; sdw_hda_dai_hw_params() local 644 struct hdac_ext_stream *hext_stream; hda_dai_suspend() local [all...] |
| H A D | hda-probes.c | 33 struct hdac_ext_stream *hext_stream; in hda_probes_compr_startup() local 35 hext_stream = hda_dsp_stream_get(sdev, cstream->direction, 0); in hda_probes_compr_startup() 36 if (!hext_stream) in hda_probes_compr_startup() 39 hdac_stream(hext_stream)->curr_pos = 0; in hda_probes_compr_startup() 40 hdac_stream(hext_stream)->cstream = cstream; in hda_probes_compr_startup() 41 cstream->runtime->private_data = hext_stream; in hda_probes_compr_startup() 43 *stream_id = hdac_stream(hext_stream)->stream_tag; in hda_probes_compr_startup() 52 struct hdac_ext_stream *hext_stream = hda_compr_get_stream(cstream); in hda_probes_compr_shutdown() local 57 hdac_stream(hext_stream)->stream_tag); in hda_probes_compr_shutdown() 63 hdac_stream(hext_stream)->cstream = NULL; in hda_probes_compr_shutdown() [all …]
|
| H A D | hda-stream.c | 188 struct hdac_ext_stream *hext_stream, in hda_dsp_stream_spib_config() argument 191 struct hdac_stream *hstream = &hext_stream->hstream; in hda_dsp_stream_spib_config() 220 struct hdac_ext_stream *hext_stream = NULL; in hda_dsp_stream_get() local 228 hext_stream = stream_to_hdac_ext_stream(s); in hda_dsp_stream_get() 229 hda_stream = container_of(hext_stream, in hda_dsp_stream_get() 231 hext_stream); in hda_dsp_stream_get() 236 if (pair && hext_stream->link_locked) in hda_dsp_stream_get() 242 hext_stream->link_locked = true; in hda_dsp_stream_get() 251 if (!hext_stream) { in hda_dsp_stream_get() 253 return hext_stream; in hda_dsp_stream_get() 274 struct hdac_ext_stream *hext_stream; hda_dsp_stream_put() local 358 hda_dsp_stream_trigger(struct snd_sof_dev * sdev,struct hdac_ext_stream * hext_stream,int cmd) hda_dsp_stream_trigger() argument 444 hda_dsp_iccmax_stream_hw_params(struct snd_sof_dev * sdev,struct hdac_ext_stream * hext_stream,struct snd_dma_buffer * dmab,struct snd_pcm_hw_params * params) hda_dsp_iccmax_stream_hw_params() argument 520 hda_dsp_stream_hw_params(struct snd_sof_dev * sdev,struct hdac_ext_stream * hext_stream,struct snd_dma_buffer * dmab,struct snd_pcm_hw_params * params) hda_dsp_stream_hw_params() argument 714 struct hdac_ext_stream *hext_stream = container_of(hstream, hda_dsp_stream_hw_free() local 809 struct hdac_ext_stream *hext_stream; hda_dsp_stream_check() local 866 struct hdac_ext_stream *hext_stream; hda_dsp_stream_init() local 1005 struct hdac_ext_stream *hext_stream; hda_dsp_stream_free() local 1034 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); hda_dsp_stream_get_position() local 1134 struct hdac_ext_stream *hext_stream; hda_dsp_get_stream_llp() local 1196 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); hda_dsp_get_stream_ldp() local [all...] |
| H A D | hda-loader.c | 185 int hda_cl_trigger(struct device *dev, struct hdac_ext_stream *hext_stream, int cmd) in cl_dsp_init() 188 struct hdac_stream *hstream = &hext_stream->hstream; in cl_dsp_init() 195 hda_stream = container_of(hext_stream, struct sof_intel_hda_stream, in cl_dsp_init() 196 hext_stream); in cl_dsp_init() 213 return hda_dsp_stream_trigger(sdev, hext_stream, cmd); in cl_dsp_init() 219 bool persistent_buffer, struct hdac_ext_stream *hext_stream) in cl_dsp_init() 221 return hda_data_stream_cleanup(dev, dmab, persistent_buffer, hext_stream, false); in cl_dsp_init() 227 int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream) in cl_dsp_init() 236 ret = hda_cl_trigger(sdev->dev, hext_stream, SNDRV_PCM_TRIGGER_START); in cl_dsp_init() 263 ret = hda_cl_trigger(sdev->dev, hext_stream, SNDRV_PCM_TRIGGER_STO in hda_cl_trigger() 57 struct hdac_ext_stream *hext_stream; hda_cl_prepare() local 242 hda_cl_trigger(struct device * dev,struct hdac_ext_stream * hext_stream,int cmd) hda_cl_trigger() argument 276 hda_cl_cleanup(struct device * dev,struct snd_dma_buffer * dmab,bool persistent_buffer,struct hdac_ext_stream * hext_stream) hda_cl_cleanup() argument 315 hda_cl_copy_fw(struct snd_sof_dev * sdev,struct hdac_ext_stream * hext_stream) hda_cl_copy_fw() argument 433 struct hdac_ext_stream *hext_stream; hda_dsp_cl_boot_firmware() local 577 struct hdac_ext_stream *hext_stream; hda_dsp_ipc4_load_library() local [all...] |
| H A D | hda-dai-ops.c | 63 struct hdac_ext_stream *hext_stream = in hda_link_stream_assign() local 68 hda_stream = hstream_to_sof_hda_stream(hext_stream); in hda_link_stream_assign() 73 if (!hext_stream->link_locked) { in hda_link_stream_assign() 79 res = hext_stream; in hda_link_stream_assign() 90 res = hext_stream; in hda_link_stream_assign() 94 res = hext_stream; in hda_link_stream_assign() 148 struct hdac_ext_stream *hext_stream; in hda_assign_hext_stream() 150 hext_stream = hda_link_stream_assign(sof_to_bus(sdev), substream); in hda_assign_hext_stream() 151 if (!hext_stream) in hda_assign_hext_stream() 154 snd_soc_dai_set_dma_data(cpu_dai, substream, (void *)hext_stream); in hda_assign_hext_stream() 149 struct hdac_ext_stream *hext_stream; hda_assign_hext_stream() local 163 struct hdac_ext_stream *hext_stream = hda_get_hext_stream(sdev, cpu_dai, substream); hda_release_hext_stream() local 169 hda_setup_hext_stream(struct snd_sof_dev * sdev,struct hdac_ext_stream * hext_stream,unsigned int format_val) hda_setup_hext_stream() argument 175 hda_reset_hext_stream(struct snd_sof_dev * sdev,struct hdac_ext_stream * hext_stream) hda_reset_hext_stream() argument 342 struct hdac_ext_stream *hext_stream = snd_soc_dai_get_dma_data(cpu_dai, substream); hda_trigger() local 564 hda_dspless_setup_hext_stream(struct snd_sof_dev * sdev,struct hdac_ext_stream * hext_stream,unsigned int format_val) hda_dspless_setup_hext_stream() argument [all...] |
| H A D | hda-pcm.c | 107 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); in hda_dsp_pcm_hw_params() local 133 ret = hda_dsp_stream_hw_params(sdev, hext_stream, dmab, params); in hda_dsp_pcm_hw_params() 141 hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_ENABLE, 0); in hda_dsp_pcm_hw_params() 143 hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_DISABLE, 0); in hda_dsp_pcm_hw_params() 181 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); in hda_dsp_pcm_trigger() local 183 return hda_dsp_stream_trigger(sdev, hext_stream, cmd); in hda_dsp_pcm_trigger()
|
| H A D | hda-trace.c | 25 struct hdac_ext_stream *hext_stream = hda->dtrace_stream; in hda_dsp_trace_prepare() local 26 struct hdac_stream *hstream = &hext_stream->hstream; in hda_dsp_trace_prepare() 32 ret = hda_dsp_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_dsp_trace_prepare()
|
| H A D | hda.h | 578 struct hdac_ext_stream hext_stream; member 586 container_of(hstream, struct sof_intel_hda_stream, hext_stream) 670 struct hdac_ext_stream *hext_stream, 674 struct hdac_ext_stream *hext_stream, 678 struct hdac_ext_stream *hext_stream, int cmd); 702 struct hdac_ext_stream *hext_stream, 733 int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream); 739 int hda_cl_trigger(struct device *dev, struct hdac_ext_stream *hext_stream, int cmd); 742 bool persistent_buffer, struct hdac_ext_stream *hext_stream); 914 bool persistent_buffer, struct hdac_ext_stream *hext_stream, boo [all...] |
| H A D | hda-sdw-bpt.c | 381 hda_tx_stream = container_of(bpt_tx_stream, struct sof_intel_hda_stream, hext_stream); in hda_sdw_bpt_wait() 382 hda_rx_stream = container_of(bpt_rx_stream, struct sof_intel_hda_stream, hext_stream); in hda_sdw_bpt_wait()
|
| H A D | hda-ipc.c | 415 hext_stream.hstream); in hda_ipc_msg_data() 437 hext_stream.hstream); in hda_set_stream_data_offset()
|
| /linux/include/sound/ |
| H A D | hdaudio_ext.h | 81 void snd_hdac_ext_stream_release(struct hdac_ext_stream *hext_stream, int type); 85 struct hdac_ext_stream *hext_stream, bool decouple); 89 void snd_hdac_ext_stream_start(struct hdac_ext_stream *hext_stream); 90 void snd_hdac_ext_stream_clear(struct hdac_ext_stream *hext_stream); 91 void snd_hdac_ext_stream_reset(struct hdac_ext_stream *hext_stream); 92 int snd_hdac_ext_stream_setup(struct hdac_ext_stream *hext_stream, int fmt); 93 int snd_hdac_ext_host_stream_setup(struct hdac_ext_stream *hext_stream, bool code_loading);
|