Lines Matching refs:substream
39 struct snd_pcm_substream *substream; member
48 struct snd_pcm_substream *substream = iprtd->substream; in snd_hrtimer_callback() local
56 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_hrtimer_callback()
61 snd_pcm_period_elapsed(substream); in snd_hrtimer_callback()
73 struct snd_pcm_substream *substream, in snd_imx_pcm_hw_params() argument
76 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_hw_params()
84 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in snd_imx_pcm_hw_params()
90 struct snd_pcm_substream *substream) in snd_imx_pcm_prepare() argument
92 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_prepare()
97 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_prepare()
110 struct snd_pcm_substream *substream, int cmd) in snd_imx_pcm_trigger() argument
112 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_trigger()
119 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger()
131 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger()
149 struct snd_pcm_substream *substream) in snd_imx_pcm_pointer() argument
151 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_pointer()
154 return bytes_to_frames(substream->runtime, iprtd->offset); in snd_imx_pcm_pointer()
174 struct snd_pcm_substream *substream) in snd_imx_open() argument
176 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_open()
185 iprtd->substream = substream; in snd_imx_open()
192 ret = snd_pcm_hw_constraint_integer(substream->runtime, in snd_imx_open()
199 snd_soc_set_runtime_hwparams(substream, &snd_imx_hardware); in snd_imx_open()
204 struct snd_pcm_substream *substream) in snd_imx_close() argument
206 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_close()
217 struct snd_pcm_substream *substream, in snd_imx_pcm_mmap() argument
220 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_mmap()
223 ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, in snd_imx_pcm_mmap()
235 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in imx_pcm_preallocate_dma_buffer() local
236 struct snd_dma_buffer *buf = &substream->dma_buffer; in imx_pcm_preallocate_dma_buffer()
260 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in imx_pcm_new()
267 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in imx_pcm_new()
283 struct snd_pcm_substream *substream; in snd_imx_pcm_new() local
290 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in snd_imx_pcm_new()
291 if (substream) { in snd_imx_pcm_new()
292 struct snd_dma_buffer *buf = &substream->dma_buffer; in snd_imx_pcm_new()
297 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in snd_imx_pcm_new()
298 if (substream) { in snd_imx_pcm_new()
299 struct snd_dma_buffer *buf = &substream->dma_buffer; in snd_imx_pcm_new()
312 struct snd_pcm_substream *substream; in imx_pcm_free() local
317 substream = pcm->streams[stream].substream; in imx_pcm_free()
318 if (!substream) in imx_pcm_free()
321 buf = &substream->dma_buffer; in imx_pcm_free()