Lines Matching refs:substream
95 struct snd_pcm_substream *substream; member
356 snd_pcm_period_elapsed(chip->substream); in cx25821_aud_irq()
458 static int snd_cx25821_pcm_open(struct snd_pcm_substream *substream) in snd_cx25821_pcm_open() argument
460 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx25821_pcm_open()
461 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx25821_pcm_open()
475 chip->substream = substream; in snd_cx25821_pcm_open()
501 static int snd_cx25821_close(struct snd_pcm_substream *substream) in snd_cx25821_close() argument
509 static int snd_cx25821_hw_params(struct snd_pcm_substream *substream, in snd_cx25821_hw_params() argument
512 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx25821_hw_params()
516 if (substream->runtime->dma_area) { in snd_cx25821_hw_params()
518 substream->runtime->dma_area = NULL; in snd_cx25821_hw_params()
559 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx25821_hw_params()
560 substream->runtime->dma_bytes = chip->dma_size; in snd_cx25821_hw_params()
561 substream->runtime->dma_addr = 0; in snd_cx25821_hw_params()
574 static int snd_cx25821_hw_free(struct snd_pcm_substream *substream) in snd_cx25821_hw_free() argument
576 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx25821_hw_free()
578 if (substream->runtime->dma_area) { in snd_cx25821_hw_free()
580 substream->runtime->dma_area = NULL; in snd_cx25821_hw_free()
589 static int snd_cx25821_prepare(struct snd_pcm_substream *substream) in snd_cx25821_prepare() argument
597 static int snd_cx25821_card_trigger(struct snd_pcm_substream *substream, in snd_cx25821_card_trigger() argument
600 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx25821_card_trigger()
627 *substream) in snd_cx25821_pointer()
629 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx25821_pointer()
630 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx25821_pointer()
641 static struct page *snd_cx25821_page(struct snd_pcm_substream *substream, in snd_cx25821_page() argument
644 void *pageptr = substream->runtime->dma_area + offset; in snd_cx25821_page()