Lines Matching refs:substream
45 struct snd_pcm_substream *substream, in bcm63xx_pcm_hw_params() argument
49 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_hw_params()
55 snd_soc_dai_set_dma_data(asoc_rtd_to_cpu(rtd, 0), substream, dma_desc); in bcm63xx_pcm_hw_params()
61 struct snd_pcm_substream *substream) in bcm63xx_pcm_hw_free() argument
64 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_hw_free()
66 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_hw_free()
73 struct snd_pcm_substream *substream, int cmd) in bcm63xx_pcm_trigger() argument
80 rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_trigger()
84 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bcm63xx_pcm_trigger()
142 struct snd_pcm_substream *substream) in bcm63xx_pcm_prepare() argument
147 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_prepare()
148 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_prepare()
151 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_prepare()
152 dma_desc->dma_len = snd_pcm_lib_period_bytes(substream); in bcm63xx_pcm_prepare()
156 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bcm63xx_pcm_prepare()
175 struct snd_pcm_substream *substream) in bcm63xx_pcm_pointer() argument
178 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data; in bcm63xx_pcm_pointer()
181 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer()
183 x = bytes_to_frames(substream->runtime, in bcm63xx_pcm_pointer()
184 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer()
186 return x == substream->runtime->buffer_size ? 0 : x; in bcm63xx_pcm_pointer()
190 struct snd_pcm_substream *substream) in bcm63xx_pcm_open() argument
193 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_open()
224 struct snd_pcm_substream *substream) in bcm63xx_pcm_close() argument
226 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_close()
237 struct snd_pcm_substream *substream; in i2s_dma_isr() local
251 substream = i2s_priv->capture_substream; in i2s_dma_isr()
252 runtime = substream->runtime; in i2s_dma_isr()
253 rtd = asoc_substream_to_rtd(substream); in i2s_dma_isr()
255 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in i2s_dma_isr()
271 snd_pcm_lib_period_bytes(substream); in i2s_dma_isr()
273 snd_pcm_lib_period_bytes(substream); in i2s_dma_isr()
282 snd_pcm_lib_period_bytes(substream)); in i2s_dma_isr()
288 snd_pcm_period_elapsed(substream); in i2s_dma_isr()
299 substream = i2s_priv->play_substream; in i2s_dma_isr()
300 runtime = substream->runtime; in i2s_dma_isr()
301 rtd = asoc_substream_to_rtd(substream); in i2s_dma_isr()
303 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in i2s_dma_isr()
320 snd_pcm_lib_period_bytes(substream); in i2s_dma_isr()
322 snd_pcm_lib_period_bytes(substream); in i2s_dma_isr()
332 snd_pcm_lib_period_bytes(substream)); in i2s_dma_isr()
338 snd_pcm_period_elapsed(substream); in i2s_dma_isr()
363 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) in bcm63xx_soc_pcm_new()
365 pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in bcm63xx_soc_pcm_new()
366 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) in bcm63xx_soc_pcm_new()
368 pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in bcm63xx_soc_pcm_new()