Lines Matching defs:sdev
22 static int hda_dsp_trace_prepare(struct snd_sof_dev *sdev)
24 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
27 struct snd_dma_buffer *dmab = &sdev->dmatb;
31 hstream->bufsize = sdev->dmatb.bytes;
33 ret = hda_dsp_stream_hw_params(sdev, stream, dmab, NULL);
35 dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret);
40 int hda_dsp_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag)
42 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
45 hda->dtrace_stream = hda_dsp_stream_get(sdev,
49 dev_err(sdev->dev,
60 ret = hda_dsp_trace_prepare(sdev);
62 dev_err(sdev->dev, "error: hdac trace init failed: %x\n", ret);
63 hda_dsp_stream_put(sdev, SNDRV_PCM_STREAM_CAPTURE, *stream_tag);
71 int hda_dsp_trace_release(struct snd_sof_dev *sdev)
73 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
78 hda_dsp_stream_put(sdev,
85 dev_dbg(sdev->dev, "DMA trace stream is not opened!\n");
89 int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd)
91 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
93 return hda_dsp_stream_trigger(sdev, hda->dtrace_stream, cmd);