Lines Matching defs:substream
30 struct snd_pcm_substream *substream;
60 static void stm32_adfsdm_shutdown(struct snd_pcm_substream *substream,
73 static int stm32_adfsdm_dai_prepare(struct snd_pcm_substream *substream,
86 substream->runtime->rate, 0,
90 __func__, substream->runtime->rate);
170 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(priv->substream);
174 size_t buff_size = snd_pcm_lib_buffer_bytes(priv->substream);
175 size_t period_size = snd_pcm_lib_period_bytes(priv->substream);
177 snd_pcm_format_t format = priv->substream->runtime->format;
207 snd_pcm_period_elapsed(priv->substream);
213 struct snd_pcm_substream *substream, int cmd)
215 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
234 struct snd_pcm_substream *substream)
236 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
240 ret = snd_soc_set_runtime_hwparams(substream, &stm32_adfsdm_pcm_hw);
242 priv->substream = substream;
248 struct snd_pcm_substream *substream)
250 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
254 priv->substream = NULL;
261 struct snd_pcm_substream *substream)
263 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
267 return bytes_to_frames(substream->runtime, priv->pos);
271 struct snd_pcm_substream *substream,
274 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
278 priv->pcm_buff = substream->runtime->dma_area;