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;
84 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
90 struct snd_pcm_substream *substream)
92 struct snd_pcm_runtime *runtime = substream->runtime;
97 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
110 struct snd_pcm_substream *substream, int cmd)
112 struct snd_pcm_runtime *runtime = substream->runtime;
119 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
131 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
149 struct snd_pcm_substream *substream)
151 struct snd_pcm_runtime *runtime = substream->runtime;
154 return bytes_to_frames(substream->runtime, iprtd->offset);
174 struct snd_pcm_substream *substream)
176 struct snd_pcm_runtime *runtime = substream->runtime;
185 iprtd->substream = substream;
192 ret = snd_pcm_hw_constraint_integer(substream->runtime,
199 snd_soc_set_runtime_hwparams(substream, &snd_imx_hardware);
204 struct snd_pcm_substream *substream)
206 struct snd_pcm_runtime *runtime = substream->runtime;
217 struct snd_pcm_substream *substream,
220 struct snd_pcm_runtime *runtime = substream->runtime;
223 ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area,
235 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
236 struct snd_dma_buffer *buf = &substream->dma_buffer;
260 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
267 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
283 struct snd_pcm_substream *substream;
290 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
291 if (substream) {
292 struct snd_dma_buffer *buf = &substream->dma_buffer;
297 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
298 if (substream) {
299 struct snd_dma_buffer *buf = &substream->dma_buffer;
312 struct snd_pcm_substream *substream;
317 substream = pcm->streams[stream].substream;
318 if (!substream)
321 buf = &substream->dma_buffer;