Lines Matching refs:hext_stream
106 int hda_link_dma_cleanup(struct snd_pcm_substream *substream, struct hdac_ext_stream *hext_stream, in hda_link_dma_cleanup() argument
127 stream_tag = hdac_stream(hext_stream)->stream_tag; in hda_link_dma_cleanup()
134 hext_stream->link_prepared = 0; in hda_link_dma_cleanup()
137 hda_stream = hstream_to_sof_hda_stream(hext_stream); in hda_link_dma_cleanup()
147 struct hdac_ext_stream *hext_stream; in hda_link_dma_hw_params() local
164 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream); in hda_link_dma_hw_params()
166 if (!hext_stream) { in hda_link_dma_hw_params()
168 hext_stream = ops->assign_hext_stream(sdev, cpu_dai, substream); in hda_link_dma_hw_params()
171 if (!hext_stream) in hda_link_dma_hw_params()
174 hstream = &hext_stream->hstream; in hda_link_dma_hw_params()
177 if (hext_stream->hstream.direction == SNDRV_PCM_STREAM_PLAYBACK) in hda_link_dma_hw_params()
185 ops->reset_hext_stream(sdev, hext_stream); in hda_link_dma_hw_params()
190 ops->setup_hext_stream(sdev, hext_stream, format_val); in hda_link_dma_hw_params()
193 hext_stream->link_prepared = 1; in hda_link_dma_hw_params()
202 struct hdac_ext_stream *hext_stream; in hda_dai_hw_free() local
210 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream); in hda_dai_hw_free()
211 if (!hext_stream) in hda_dai_hw_free()
214 return hda_link_dma_cleanup(substream, hext_stream, cpu_dai); in hda_dai_hw_free()
225 struct hdac_ext_stream *hext_stream; in hda_dai_hw_params_data() local
234 hext_stream = ops->get_hext_stream(sdev, dai, substream); in hda_dai_hw_params_data()
235 if (hext_stream && hext_stream->link_prepared) in hda_dai_hw_params_data()
242 hext_stream = ops->get_hext_stream(sdev, dai, substream); in hda_dai_hw_params_data()
245 data->dai_data = hdac_stream(hext_stream)->stream_tag - 1; in hda_dai_hw_params_data()
268 struct hdac_ext_stream *hext_stream; in hda_dai_trigger() local
282 hext_stream = ops->get_hext_stream(sdev, dai, substream); in hda_dai_trigger()
283 if (!hext_stream) in hda_dai_trigger()
307 ret = hda_link_dma_cleanup(substream, hext_stream, dai); in hda_dai_trigger()
360 struct hdac_ext_stream *hext_stream; in non_hda_dai_hw_params_data() local
375 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream); in non_hda_dai_hw_params_data()
378 if (hext_stream && hext_stream->link_prepared) in non_hda_dai_hw_params_data()
392 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream); in non_hda_dai_hw_params_data()
394 if (!hext_stream) { in non_hda_dai_hw_params_data()
399 hstream = &hext_stream->hstream; in non_hda_dai_hw_params_data()
483 struct hdac_ext_stream *hext_stream; in sdw_hda_dai_hw_params() local
499 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream); in sdw_hda_dai_hw_params()
502 if (hext_stream && hext_stream->link_prepared) in sdw_hda_dai_hw_params()
525 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream); in sdw_hda_dai_hw_params()
526 if (!hext_stream) in sdw_hda_dai_hw_params()
548 hdac_stream(hext_stream)->stream_tag, in sdw_hda_dai_hw_params()
618 struct hdac_ext_stream *hext_stream; in hda_dai_suspend() local
625 hext_stream = stream_to_hdac_ext_stream(s); in hda_dai_suspend()
633 if (hext_stream->link_substream) { in hda_dai_suspend()
641 rtd = snd_soc_substream_to_rtd(hext_stream->link_substream); in hda_dai_suspend()
643 w = snd_soc_dai_get_widget(cpu_dai, hdac_stream(hext_stream)->direction); in hda_dai_suspend()
652 hext_stream->link_substream, in hda_dai_suspend()
658 ret = hda_link_dma_cleanup(hext_stream->link_substream, in hda_dai_suspend()
659 hext_stream, in hda_dai_suspend()