Lines Matching defs:sdev
30 u32 hda_dsp_get_mult_div(struct snd_sof_dev *sdev, int rate)
58 dev_warn(sdev->dev, "can't find div rate %d using 48kHz\n",
64 u32 hda_dsp_get_bits(struct snd_sof_dev *sdev, int sample_bits)
78 dev_warn(sdev->dev, "can't find %d bits using 16bit\n",
84 int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
91 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
93 struct sof_ipc_fw_version *v = &sdev->fw_ready.version;
98 rate = hda_dsp_get_mult_div(sdev, params_rate(params));
99 bits = hda_dsp_get_bits(sdev, params_width(params));
112 ret = hda_dsp_stream_hw_params(sdev, stream, dmab, params);
114 dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret);
119 hda_dsp_stream_spib_config(sdev, stream, HDA_DSP_SPIB_DISABLE, 0);
138 int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev,
144 return hda_dsp_stream_trigger(sdev, stream, cmd);
147 snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev,
151 struct snd_soc_component *scomp = sdev->component;
153 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
159 dev_warn_ratelimited(sdev->dev, "warn: can't find PCM with DAI ID %d\n",
179 pos = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR,
197 snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR,
210 dev_vdbg(sdev->dev, "PCM: stream %d dir %d position %lu\n",
215 int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
221 dsp_stream = hda_dsp_stream_get(sdev, direction);
224 dev_err(sdev->dev, "error: no stream available\n");
233 int hda_dsp_pcm_close(struct snd_sof_dev *sdev,
240 ret = hda_dsp_stream_put(sdev, direction, hstream->stream_tag);
243 dev_dbg(sdev->dev, "stream %s not opened!\n", substream->name);