Lines Matching defs:sdev
40 u32 hda_dsp_get_mult_div(struct snd_sof_dev *sdev, int rate)
68 dev_warn(sdev->dev, "can't find div rate %d using 48kHz\n",
74 u32 hda_dsp_get_bits(struct snd_sof_dev *sdev, int sample_bits)
88 dev_warn(sdev->dev, "can't find %d bits using 16bit\n",
94 int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
101 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
113 if (!sdev->dspless_mode_selected) {
114 u32 rate = hda_dsp_get_mult_div(sdev, params_rate(params));
115 u32 bits = hda_dsp_get_bits(sdev, params_width(params));
126 ret = hda_dsp_stream_hw_params(sdev, hext_stream, dmab, params);
128 dev_err(sdev->dev, "error: hdac prepare failed: %d\n", ret);
134 hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_ENABLE, 0);
136 hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_DISABLE, 0);
147 int hda_dsp_pcm_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream)
163 sof_io_write(sdev, hstream->spib_addr, spib);
168 int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev,
174 return hda_dsp_stream_trigger(sdev, hext_stream, cmd);
177 snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev,
181 struct snd_soc_component *scomp = sdev->component;
183 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
189 dev_warn_ratelimited(sdev->dev, "warn: can't find PCM with DAI ID %d\n",
204 trace_sof_intel_hda_dsp_pcm(sdev, hstream, substream, pos);
208 int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
213 struct snd_soc_component *scomp = sdev->component;
221 dev_err(sdev->dev, "error: can't find PCM with DAI ID %d\n", rtd->dai_link->id);
244 dsp_stream = hda_dsp_stream_get(sdev, direction, flags);
246 dev_err(sdev->dev, "error: no stream available\n");
258 if (sdev->dspless_mode_selected)
267 int hda_dsp_pcm_close(struct snd_sof_dev *sdev,
274 ret = hda_dsp_stream_put(sdev, direction, hstream->stream_tag);
277 dev_dbg(sdev->dev, "stream %s not opened!\n", substream->name);