Lines Matching refs:substream
95 struct snd_pcm_substream *substream;
279 snd_pcm_period_elapsed(chip->substream);
381 static int snd_cx25821_pcm_open(struct snd_pcm_substream *substream)
383 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
384 struct snd_pcm_runtime *runtime = substream->runtime;
398 chip->substream = substream;
424 static int snd_cx25821_close(struct snd_pcm_substream *substream)
432 static int snd_cx25821_hw_params(struct snd_pcm_substream *substream,
435 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
441 if (substream->runtime->dma_area) {
443 substream->runtime->dma_area = NULL;
488 substream->runtime->dma_area = chip->dma_risc->vaddr;
489 substream->runtime->dma_bytes = chip->dma_size;
490 substream->runtime->dma_addr = 0;
502 static int snd_cx25821_hw_free(struct snd_pcm_substream *substream)
504 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
506 if (substream->runtime->dma_area) {
508 substream->runtime->dma_area = NULL;
517 static int snd_cx25821_prepare(struct snd_pcm_substream *substream)
525 static int snd_cx25821_card_trigger(struct snd_pcm_substream *substream,
528 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
555 *substream)
557 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
558 struct snd_pcm_runtime *runtime = substream->runtime;
569 static struct page *snd_cx25821_page(struct snd_pcm_substream *substream,
572 void *pageptr = substream->runtime->dma_area + offset;