Lines Matching defs:substream

44 	struct snd_pcm_substream *substream = arg;
45 struct snd_pcm_runtime *runtime = substream->runtime;
48 pair->pos += snd_pcm_lib_period_bytes(substream);
49 if (pair->pos >= snd_pcm_lib_buffer_bytes(substream))
52 snd_pcm_period_elapsed(substream);
55 static int fsl_asrc_dma_prepare_and_submit(struct snd_pcm_substream *substream,
58 u8 dir = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? OUT : IN;
59 struct snd_pcm_runtime *runtime = substream->runtime;
65 if (!substream->runtime->no_period_wakeup)
71 snd_pcm_lib_buffer_bytes(substream),
72 snd_pcm_lib_period_bytes(substream),
80 pair->desc[!dir]->callback_param = substream;
98 struct snd_pcm_substream *substream, int cmd)
100 struct snd_pcm_runtime *runtime = substream->runtime;
108 ret = fsl_asrc_dma_prepare_and_submit(substream, component);
128 struct snd_pcm_substream *substream,
133 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
134 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
137 struct snd_pcm_runtime *runtime = substream->runtime;
147 int stream = substream->stream;
171 dev_err(dev, "failed to get the substream of Back-End\n");
176 dma_params_fe = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream);
186 ret = snd_dmaengine_pcm_prepare_slave_config(substream, params, &config_fe);
209 be_chan = soc_component_to_pcm(component_be)->chan[substream->stream];
309 struct snd_pcm_substream *substream)
311 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
312 struct snd_pcm_runtime *runtime = substream->runtime;
330 struct snd_pcm_substream *substream)
332 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
333 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
334 struct snd_pcm_runtime *runtime = substream->runtime;
344 ret = snd_pcm_hw_constraint_integer(substream->runtime,
378 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream);
381 ret = snd_dmaengine_pcm_refine_runtime_hwparams(substream,
391 snd_soc_set_runtime_hwparams(substream, &snd_imx_hardware);
407 struct snd_pcm_substream *substream)
409 struct snd_pcm_runtime *runtime = substream->runtime;
428 struct snd_pcm_substream *substream)
430 struct snd_pcm_runtime *runtime = substream->runtime;
433 return bytes_to_frames(substream->runtime, pair->pos);