Lines Matching refs:hext_stream
51 struct hdac_ext_stream *hext_stream; in hda_cl_prepare() local
55 hext_stream = hda_dsp_stream_get(sdev, direction, 0); in hda_cl_prepare()
57 if (!hext_stream) { in hda_cl_prepare()
61 hstream = &hext_stream->hstream; in hda_cl_prepare()
76 ret = hda_dsp_iccmax_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_prepare()
82 ret = hda_dsp_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_prepare()
87 hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_ENABLE, size); in hda_cl_prepare()
90 return hext_stream; in hda_cl_prepare()
224 int hda_cl_trigger(struct device *dev, struct hdac_ext_stream *hext_stream, int cmd) in hda_cl_trigger() argument
227 struct hdac_stream *hstream = &hext_stream->hstream; in hda_cl_trigger()
234 hda_stream = container_of(hext_stream, struct sof_intel_hda_stream, in hda_cl_trigger()
235 hext_stream); in hda_cl_trigger()
252 return hda_dsp_stream_trigger(sdev, hext_stream, cmd); in hda_cl_trigger()
258 struct hdac_ext_stream *hext_stream) in hda_cl_cleanup() argument
261 struct hdac_stream *hstream = &hext_stream->hstream; in hda_cl_cleanup()
266 ret = hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_DISABLE, 0); in hda_cl_cleanup()
293 int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream) in hda_cl_copy_fw() argument
302 ret = hda_cl_trigger(sdev->dev, hext_stream, SNDRV_PCM_TRIGGER_START); in hda_cl_copy_fw()
329 ret = hda_cl_trigger(sdev->dev, hext_stream, SNDRV_PCM_TRIGGER_STOP); in hda_cl_copy_fw()
409 struct hdac_ext_stream *hext_stream; in hda_dsp_cl_boot_firmware() local
442 hext_stream = hda_cl_prepare(sdev->dev, HDA_CL_STREAM_FORMAT, in hda_dsp_cl_boot_firmware()
445 if (IS_ERR(hext_stream)) { in hda_dsp_cl_boot_firmware()
447 return PTR_ERR(hext_stream); in hda_dsp_cl_boot_firmware()
460 ret = chip_info->cl_init(sdev, hext_stream->hstream.stream_tag, false); in hda_dsp_cl_boot_firmware()
501 ret = hda_cl_copy_fw(sdev, hext_stream); in hda_dsp_cl_boot_firmware()
517 ret1 = hda_cl_cleanup(sdev->dev, &dmab, hext_stream); in hda_dsp_cl_boot_firmware()
545 struct hdac_ext_stream *hext_stream; in hda_dsp_ipc4_load_library() local
560 hext_stream = hda_cl_prepare(sdev->dev, HDA_CL_STREAM_FORMAT, in hda_dsp_ipc4_load_library()
563 if (IS_ERR(hext_stream)) { in hda_dsp_ipc4_load_library()
565 return PTR_ERR(hext_stream); in hda_dsp_ipc4_load_library()
577 msg.primary = hext_stream->hstream.stream_tag - 1; in hda_dsp_ipc4_load_library()
583 int sd_offset = SOF_STREAM_SD_OFFSET(&hext_stream->hstream); in hda_dsp_ipc4_load_library()
605 ret = hda_cl_trigger(sdev->dev, hext_stream, SNDRV_PCM_TRIGGER_START); in hda_dsp_ipc4_load_library()
622 ret1 = hda_cl_trigger(sdev->dev, hext_stream, SNDRV_PCM_TRIGGER_STOP); in hda_dsp_ipc4_load_library()
631 ret1 = hda_cl_cleanup(sdev->dev, &dmab, hext_stream); in hda_dsp_ipc4_load_library()