/linux/sound/hda/ext/ |
H A D | hdac_ext_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-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-dai.c | 108 struct hdac_ext_stream *hext_stream, in hda_link_dma_cleanup() argument 129 stream_tag = hdac_stream(hext_stream)->stream_tag; in hda_link_dma_cleanup() 140 hext_stream->link_prepared = 0; in hda_link_dma_cleanup() 147 hext_stream->link_prepared = 0; in hda_link_dma_cleanup() 150 hda_stream = hstream_to_sof_hda_stream(hext_stream); in hda_link_dma_cleanup() 160 struct hdac_ext_stream *hext_stream; in hda_link_dma_hw_params() local 177 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream); in hda_link_dma_hw_params() 179 if (!hext_stream) { in hda_link_dma_hw_params() 181 hext_stream = ops->assign_hext_stream(sdev, cpu_dai, substream); in hda_link_dma_hw_params() 184 if (!hext_stream) in hda_link_dma_hw_params() [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() 244 if (!hext_stream) { in hda_dsp_stream_get() 246 return hext_stream; in hda_dsp_stream_get() 264 return hext_stream; in hda_dsp_stream_get() 274 struct hdac_ext_stream *hext_stream; in hda_dsp_stream_put() local [all …]
|
H A D | hda-loader.c | 57 struct hdac_ext_stream *hext_stream; in hda_cl_prepare() local 61 hext_stream = hda_dsp_stream_get(sdev, direction, 0); in hda_cl_prepare() 63 if (!hext_stream) { in hda_cl_prepare() 67 hstream = &hext_stream->hstream; in hda_cl_prepare() 90 ret = hda_dsp_iccmax_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_prepare() 96 ret = hda_dsp_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_prepare() 101 hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_ENABLE, size); in hda_cl_prepare() 104 return hext_stream; in hda_cl_prepare() 242 int hda_cl_trigger(struct device *dev, struct hdac_ext_stream *hext_stream, int cmd) in hda_cl_trigger() argument 245 struct hdac_stream *hstream = &hext_stream->hstream; in hda_cl_trigger() [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() 149 struct hdac_ext_stream *hext_stream; in hda_assign_hext_stream() local 151 hext_stream = hda_link_stream_assign(sof_to_bus(sdev), substream); in hda_assign_hext_stream() 152 if (!hext_stream) in hda_assign_hext_stream() 155 snd_soc_dai_set_dma_data(cpu_dai, substream, (void *)hext_stream); in hda_assign_hext_stream() [all …]
|
H A D | hda-pcm.c | 105 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); in hda_dsp_pcm_hw_params() local 131 ret = hda_dsp_stream_hw_params(sdev, hext_stream, dmab, params); in hda_dsp_pcm_hw_params() 139 hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_ENABLE, 0); in hda_dsp_pcm_hw_params() 141 hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_DISABLE, 0); in hda_dsp_pcm_hw_params() 179 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); in hda_dsp_pcm_trigger() local 181 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 | 570 struct hdac_ext_stream hext_stream; member 578 container_of(hstream, struct sof_intel_hda_stream, hext_stream) 662 struct hdac_ext_stream *hext_stream, 666 struct hdac_ext_stream *hext_stream, 670 struct hdac_ext_stream *hext_stream, int cmd); 691 struct hdac_ext_stream *hext_stream, 722 int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream); 728 int hda_cl_trigger(struct device *dev, struct hdac_ext_stream *hext_stream, int cmd); 731 bool persistent_buffer, struct hdac_ext_stream *hext_stream); 1018 void (*setup_hext_stream)(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream,
|
H A D | hda-ipc.c | 422 hext_stream.hstream); in hda_ipc_msg_data() 444 hext_stream.hstream); in hda_set_stream_data_offset()
|
/linux/include/sound/ |
H A D | hdaudio_ext.h | 80 void snd_hdac_ext_stream_release(struct hdac_ext_stream *hext_stream, int type); 84 struct hdac_ext_stream *hext_stream, bool decouple); 88 void snd_hdac_ext_stream_start(struct hdac_ext_stream *hext_stream); 89 void snd_hdac_ext_stream_clear(struct hdac_ext_stream *hext_stream); 90 void snd_hdac_ext_stream_reset(struct hdac_ext_stream *hext_stream); 91 int snd_hdac_ext_stream_setup(struct hdac_ext_stream *hext_stream, int fmt); 92 int snd_hdac_ext_host_stream_setup(struct hdac_ext_stream *hext_stream, bool code_loading);
|