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()
72 static int snd_imx_pcm_hw_params(struct snd_pcm_substream *substream, in snd_imx_pcm_hw_params() argument
75 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_hw_params()
83 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in snd_imx_pcm_hw_params()
88 static int snd_imx_pcm_prepare(struct snd_pcm_substream *substream) in snd_imx_pcm_prepare() argument
90 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_prepare()
95 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_prepare()
107 static int snd_imx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in snd_imx_pcm_trigger() argument
109 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_trigger()
116 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger()
128 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger()
144 static snd_pcm_uframes_t snd_imx_pcm_pointer(struct snd_pcm_substream *substream) in snd_imx_pcm_pointer() argument
146 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_pointer()
149 return bytes_to_frames(substream->runtime, iprtd->offset); in snd_imx_pcm_pointer()
168 static int snd_imx_open(struct snd_pcm_substream *substream) in snd_imx_open() argument
170 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_open()
179 iprtd->substream = substream; in snd_imx_open()
186 ret = snd_pcm_hw_constraint_integer(substream->runtime, in snd_imx_open()
193 snd_soc_set_runtime_hwparams(substream, &snd_imx_hardware); in snd_imx_open()
197 static int snd_imx_close(struct snd_pcm_substream *substream) in snd_imx_close() argument
199 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_close()
209 static int snd_imx_pcm_mmap(struct snd_pcm_substream *substream, in snd_imx_pcm_mmap() argument
212 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_mmap()
215 ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, in snd_imx_pcm_mmap()
238 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in imx_pcm_preallocate_dma_buffer() local
239 struct snd_dma_buffer *buf = &substream->dma_buffer; in imx_pcm_preallocate_dma_buffer()
263 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in imx_pcm_new()
270 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in imx_pcm_new()
285 struct snd_pcm_substream *substream; in imx_pcm_fiq_new() local
292 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in imx_pcm_fiq_new()
293 if (substream) { in imx_pcm_fiq_new()
294 struct snd_dma_buffer *buf = &substream->dma_buffer; in imx_pcm_fiq_new()
299 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in imx_pcm_fiq_new()
300 if (substream) { in imx_pcm_fiq_new()
301 struct snd_dma_buffer *buf = &substream->dma_buffer; in imx_pcm_fiq_new()
314 struct snd_pcm_substream *substream; in imx_pcm_free() local
319 substream = pcm->streams[stream].substream; in imx_pcm_free()
320 if (!substream) in imx_pcm_free()
323 buf = &substream->dma_buffer; in imx_pcm_free()