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()
89 struct snd_pcm_substream *substream) in snd_imx_pcm_prepare() argument
91 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_prepare()
96 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_prepare()
109 struct snd_pcm_substream *substream, int cmd) in snd_imx_pcm_trigger() argument
111 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_trigger()
118 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger()
130 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger()
148 struct snd_pcm_substream *substream) in snd_imx_pcm_pointer() argument
150 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_pointer()
153 return bytes_to_frames(substream->runtime, iprtd->offset); in snd_imx_pcm_pointer()
173 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()
203 struct snd_pcm_substream *substream) in snd_imx_close() argument
205 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_close()
236 struct snd_pcm_substream *substream; in snd_imx_pcm_new() local
243 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in snd_imx_pcm_new()
244 if (substream) { in snd_imx_pcm_new()
245 struct snd_dma_buffer *buf = &substream->dma_buffer; in snd_imx_pcm_new()
250 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in snd_imx_pcm_new()
251 if (substream) { in snd_imx_pcm_new()
252 struct snd_dma_buffer *buf = &substream->dma_buffer; in snd_imx_pcm_new()