Lines Matching refs:substream
264 snd_pcm_period_elapsed(chip->substream); in cx23885_audio_irq()
323 static int snd_cx23885_pcm_open(struct snd_pcm_substream *substream) in snd_cx23885_pcm_open() argument
325 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_pcm_open()
326 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx23885_pcm_open()
340 chip->substream = substream; in snd_cx23885_pcm_open()
362 static int snd_cx23885_close(struct snd_pcm_substream *substream) in snd_cx23885_close() argument
371 static int snd_cx23885_hw_params(struct snd_pcm_substream *substream, in snd_cx23885_hw_params() argument
374 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_hw_params()
378 if (substream->runtime->dma_area) { in snd_cx23885_hw_params()
380 substream->runtime->dma_area = NULL; in snd_cx23885_hw_params()
416 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx23885_hw_params()
417 substream->runtime->dma_bytes = chip->dma_size; in snd_cx23885_hw_params()
418 substream->runtime->dma_addr = 0; in snd_cx23885_hw_params()
431 static int snd_cx23885_hw_free(struct snd_pcm_substream *substream) in snd_cx23885_hw_free() argument
434 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_hw_free()
436 if (substream->runtime->dma_area) { in snd_cx23885_hw_free()
438 substream->runtime->dma_area = NULL; in snd_cx23885_hw_free()
447 static int snd_cx23885_prepare(struct snd_pcm_substream *substream) in snd_cx23885_prepare() argument
455 static int snd_cx23885_card_trigger(struct snd_pcm_substream *substream, in snd_cx23885_card_trigger() argument
458 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_card_trigger()
485 struct snd_pcm_substream *substream) in snd_cx23885_pointer() argument
487 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_pointer()
488 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx23885_pointer()
499 static struct page *snd_cx23885_page(struct snd_pcm_substream *substream, in snd_cx23885_page() argument
502 void *pageptr = substream->runtime->dma_area + offset; in snd_cx23885_page()