Lines Matching defs:substream

198 				struct snd_pcm_substream *substream)
200 struct snd_soc_pcm_runtime *soc_runtime = snd_soc_substream_to_rtd(substream);
202 return snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(soc_runtime, 0), substream);
246 static int configure_ringbuf_regs(struct snd_pcm_substream *substream)
252 aio = cygnus_dai_get_dma_data(substream);
255 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
295 static struct ringbuf_regs *get_ringbuf(struct snd_pcm_substream *substream)
300 aio = cygnus_dai_get_dma_data(substream);
302 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
310 static void enable_intr(struct snd_pcm_substream *substream)
315 aio = cygnus_dai_get_dma_data(substream);
320 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
344 static void disable_intr(struct snd_pcm_substream *substream)
346 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
350 aio = cygnus_dai_get_dma_data(substream);
357 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
370 struct snd_pcm_substream *substream, int cmd)
377 enable_intr(substream);
382 disable_intr(substream);
391 static void cygnus_pcm_period_elapsed(struct snd_pcm_substream *substream)
397 aio = cygnus_dai_get_dma_data(substream);
399 p_rbuf = get_ringbuf(substream);
405 snd_pcm_period_elapsed(substream);
407 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
572 struct snd_pcm_substream *substream)
574 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
575 struct snd_pcm_runtime *runtime = substream->runtime;
579 aio = cygnus_dai_get_dma_data(substream);
585 snd_soc_set_runtime_hwparams(substream, &cygnus_pcm_hw);
597 * Keep track of which substream belongs to which port.
600 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
601 aio->play_stream = substream;
603 aio->capture_stream = substream;
609 struct snd_pcm_substream *substream)
611 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
614 aio = cygnus_dai_get_dma_data(substream);
618 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
630 struct snd_pcm_substream *substream)
632 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
633 struct snd_pcm_runtime *runtime = substream->runtime;
640 aio = cygnus_dai_get_dma_data(substream);
643 bufsize = snd_pcm_lib_buffer_bytes(substream);
644 periodsize = snd_pcm_lib_period_bytes(substream);
649 configure_ringbuf_regs(substream);
651 p_rbuf = get_ringbuf(substream);
655 is_play = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 1 : 0;
664 struct snd_pcm_substream *substream)
670 aio = cygnus_dai_get_dma_data(substream);
676 p_rbuf = get_ringbuf(substream);
677 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
690 return bytes_to_frames(substream->runtime, res);