Lines Matching defs:sdev
19 int acp_pcm_hw_params(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream,
33 ret = acp_dsp_stream_config(sdev, stream);
35 dev_err(sdev->dev, "stream configuration failed\n");
46 buf_offset = sdev->debug_box.offset +
51 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_SCRATCH_REG_0 + buf_offset, size);
57 int acp_pcm_open(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream)
61 stream = acp_dsp_stream_get(sdev, 0);
72 int acp_pcm_close(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream)
78 dev_err(sdev->dev, "No open stream\n");
85 return acp_dsp_stream_put(sdev, stream);
89 snd_pcm_uframes_t acp_pcm_pointer(struct snd_sof_dev *sdev,
93 struct snd_soc_component *scomp = sdev->component;
102 dev_warn_ratelimited(sdev->dev, "warn: can't find PCM with DAI ID %d\n",
108 ret = snd_sof_ipc_msg_data(sdev, stream, &posn, sizeof(posn));
110 dev_warn(sdev->dev, "failed to read stream position: %d\n", ret);