Lines Matching refs:substream

44 	struct snd_pcm_substream *substream;  member
53 struct snd_pcm_substream *substream = iprtd->substream; in snd_hrtimer_callback() local
61 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_hrtimer_callback()
66 snd_pcm_period_elapsed(substream); in snd_hrtimer_callback()
77 static int snd_imx_pcm_hw_params(struct snd_pcm_substream *substream, in snd_imx_pcm_hw_params() argument
80 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_hw_params()
88 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in snd_imx_pcm_hw_params()
93 static int snd_imx_pcm_prepare(struct snd_pcm_substream *substream) in snd_imx_pcm_prepare() argument
95 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_prepare()
100 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_prepare()
112 static int snd_imx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in snd_imx_pcm_trigger() argument
114 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_trigger()
121 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger()
133 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger()
149 static snd_pcm_uframes_t snd_imx_pcm_pointer(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()
173 static int snd_imx_open(struct snd_pcm_substream *substream) in snd_imx_open() argument
175 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_open()
184 iprtd->substream = substream; in snd_imx_open()
191 ret = snd_pcm_hw_constraint_integer(substream->runtime, in snd_imx_open()
198 snd_soc_set_runtime_hwparams(substream, &snd_imx_hardware); in snd_imx_open()
202 static int snd_imx_close(struct snd_pcm_substream *substream) in snd_imx_close() argument
204 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_close()
214 static int snd_imx_pcm_mmap(struct snd_pcm_substream *substream, in snd_imx_pcm_mmap() argument
217 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_mmap()
220 ret = dma_mmap_writecombine(substream->pcm->card->dev, vma, in snd_imx_pcm_mmap()
243 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in imx_pcm_preallocate_dma_buffer() local
244 struct snd_dma_buffer *buf = &substream->dma_buffer; in imx_pcm_preallocate_dma_buffer()
269 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in imx_pcm_new()
276 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in imx_pcm_new()
291 struct snd_pcm_substream *substream; in imx_pcm_fiq_new() local
298 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in imx_pcm_fiq_new()
299 if (substream) { in imx_pcm_fiq_new()
300 struct snd_dma_buffer *buf = &substream->dma_buffer; in imx_pcm_fiq_new()
305 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in imx_pcm_fiq_new()
306 if (substream) { in imx_pcm_fiq_new()
307 struct snd_dma_buffer *buf = &substream->dma_buffer; in imx_pcm_fiq_new()
320 struct snd_pcm_substream *substream; in imx_pcm_free() local
325 substream = pcm->streams[stream].substream; in imx_pcm_free()
326 if (!substream) in imx_pcm_free()
329 buf = &substream->dma_buffer; in imx_pcm_free()