• Home
  • Raw
  • Download

Lines Matching refs:substream

44 				 struct snd_pcm_substream *substream,  in bcm63xx_pcm_hw_params()  argument
48 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_hw_params()
54 snd_soc_dai_set_dma_data(asoc_rtd_to_cpu(rtd, 0), substream, dma_desc); in bcm63xx_pcm_hw_params()
60 struct snd_pcm_substream *substream) in bcm63xx_pcm_hw_free() argument
63 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_hw_free()
65 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_hw_free()
72 struct snd_pcm_substream *substream, int cmd) in bcm63xx_pcm_trigger() argument
79 rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_trigger()
83 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bcm63xx_pcm_trigger()
141 struct snd_pcm_substream *substream) in bcm63xx_pcm_prepare() argument
146 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_prepare()
147 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_prepare()
150 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_prepare()
151 dma_desc->dma_len = snd_pcm_lib_period_bytes(substream); in bcm63xx_pcm_prepare()
155 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bcm63xx_pcm_prepare()
174 struct snd_pcm_substream *substream) in bcm63xx_pcm_pointer() argument
177 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data; in bcm63xx_pcm_pointer()
180 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer()
182 x = bytes_to_frames(substream->runtime, in bcm63xx_pcm_pointer()
183 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer()
185 return x == substream->runtime->buffer_size ? 0 : x; in bcm63xx_pcm_pointer()
189 struct snd_pcm_substream *substream) in bcm63xx_pcm_open() argument
192 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_open()
223 struct snd_pcm_substream *substream) in bcm63xx_pcm_close() argument
225 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_close()
236 struct snd_pcm_substream *substream; in i2s_dma_isr() local
250 substream = i2s_priv->capture_substream; in i2s_dma_isr()
251 runtime = substream->runtime; in i2s_dma_isr()
252 rtd = asoc_substream_to_rtd(substream); in i2s_dma_isr()
254 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in i2s_dma_isr()
270 snd_pcm_lib_period_bytes(substream); in i2s_dma_isr()
272 snd_pcm_lib_period_bytes(substream); in i2s_dma_isr()
281 snd_pcm_lib_period_bytes(substream)); in i2s_dma_isr()
287 snd_pcm_period_elapsed(substream); in i2s_dma_isr()
298 substream = i2s_priv->play_substream; in i2s_dma_isr()
299 runtime = substream->runtime; in i2s_dma_isr()
300 rtd = asoc_substream_to_rtd(substream); in i2s_dma_isr()
302 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in i2s_dma_isr()
319 snd_pcm_lib_period_bytes(substream); in i2s_dma_isr()
321 snd_pcm_lib_period_bytes(substream); in i2s_dma_isr()
331 snd_pcm_lib_period_bytes(substream)); in i2s_dma_isr()
337 snd_pcm_period_elapsed(substream); in i2s_dma_isr()
362 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) in bcm63xx_soc_pcm_new()
364 pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in bcm63xx_soc_pcm_new()
365 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) in bcm63xx_soc_pcm_new()
367 pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in bcm63xx_soc_pcm_new()