Lines Matching refs:substream
39 struct snd_pcm_substream *substream;
48 struct snd_pcm_substream *substream = iprtd->substream;
56 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
61 snd_pcm_period_elapsed(substream);
73 struct snd_pcm_substream *substream,
76 struct snd_pcm_runtime *runtime = substream->runtime;
89 struct snd_pcm_substream *substream)
91 struct snd_pcm_runtime *runtime = substream->runtime;
96 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
109 struct snd_pcm_substream *substream, int cmd)
111 struct snd_pcm_runtime *runtime = substream->runtime;
118 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
130 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
148 struct snd_pcm_substream *substream)
150 struct snd_pcm_runtime *runtime = substream->runtime;
153 return bytes_to_frames(substream->runtime, iprtd->offset);
173 struct snd_pcm_substream *substream)
175 struct snd_pcm_runtime *runtime = substream->runtime;
184 iprtd->substream = substream;
191 ret = snd_pcm_hw_constraint_integer(substream->runtime,
198 snd_soc_set_runtime_hwparams(substream, &snd_imx_hardware);
203 struct snd_pcm_substream *substream)
205 struct snd_pcm_runtime *runtime = substream->runtime;
236 struct snd_pcm_substream *substream;
243 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
244 if (substream) {
245 struct snd_dma_buffer *buf = &substream->dma_buffer;
250 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
251 if (substream) {
252 struct snd_dma_buffer *buf = &substream->dma_buffer;