Lines Matching refs:substream

44 				 struct snd_pcm_substream *substream,
48 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
49 struct snd_pcm_runtime *runtime = substream->runtime;
51 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
58 snd_soc_dai_set_dma_data(asoc_rtd_to_cpu(rtd, 0), substream, dma_desc);
64 struct snd_pcm_substream *substream)
67 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
69 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream);
71 snd_pcm_set_runtime_buffer(substream, NULL);
77 struct snd_pcm_substream *substream, int cmd)
84 rtd = asoc_substream_to_rtd(substream);
88 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
146 struct snd_pcm_substream *substream)
151 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
152 struct snd_pcm_runtime *runtime = substream->runtime;
155 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream);
156 dma_desc->dma_len = snd_pcm_lib_period_bytes(substream);
160 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
179 struct snd_pcm_substream *substream)
182 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data;
185 prtd->dma_addr_next = substream->runtime->dma_addr;
187 x = bytes_to_frames(substream->runtime,
188 prtd->dma_addr_next - substream->runtime->dma_addr);
190 return x == substream->runtime->buffer_size ? 0 : x;
194 struct snd_pcm_substream *substream,
197 struct snd_pcm_runtime *runtime = substream->runtime;
199 return dma_mmap_wc(substream->pcm->card->dev, vma,
207 struct snd_pcm_substream *substream)
210 struct snd_pcm_runtime *runtime = substream->runtime;
241 struct snd_pcm_substream *substream)
243 struct snd_pcm_runtime *runtime = substream->runtime;
254 struct snd_pcm_substream *substream;
268 substream = i2s_priv->capture_substream;
269 runtime = substream->runtime;
270 rtd = asoc_substream_to_rtd(substream);
272 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream);
288 snd_pcm_lib_period_bytes(substream);
290 snd_pcm_lib_period_bytes(substream);
299 snd_pcm_lib_period_bytes(substream));
305 snd_pcm_period_elapsed(substream);
316 substream = i2s_priv->play_substream;
317 runtime = substream->runtime;
318 rtd = asoc_substream_to_rtd(substream);
320 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream);
337 snd_pcm_lib_period_bytes(substream);
339 snd_pcm_lib_period_bytes(substream);
349 snd_pcm_lib_period_bytes(substream));
355 snd_pcm_period_elapsed(substream);
367 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
368 struct snd_dma_buffer *buf = &substream->dma_buffer;
399 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
406 pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
409 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
415 pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
427 struct snd_pcm_substream *substream;
430 substream = pcm->streams[stream].substream;
431 if (!substream)
433 buf = &substream->dma_buffer;