Lines Matching refs:substream
92 struct snd_pcm_substream *substream; member
252 snd_pcm_period_elapsed(chip->substream); in cx8801_aud_irq()
421 static int snd_cx88_pcm_open(struct snd_pcm_substream *substream) in snd_cx88_pcm_open() argument
423 snd_cx88_card_t *chip = snd_pcm_substream_chip(substream); in snd_cx88_pcm_open()
424 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx88_pcm_open()
437 chip->substream = substream; in snd_cx88_pcm_open()
457 static int snd_cx88_close(struct snd_pcm_substream *substream) in snd_cx88_close() argument
465 static int snd_cx88_hw_params(struct snd_pcm_substream * substream, in snd_cx88_hw_params() argument
468 snd_cx88_card_t *chip = snd_pcm_substream_chip(substream); in snd_cx88_hw_params()
473 if (substream->runtime->dma_area) { in snd_cx88_hw_params()
475 substream->runtime->dma_area = NULL; in snd_cx88_hw_params()
510 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx88_hw_params()
511 substream->runtime->dma_bytes = chip->dma_size; in snd_cx88_hw_params()
512 substream->runtime->dma_addr = 0; in snd_cx88_hw_params()
523 static int snd_cx88_hw_free(struct snd_pcm_substream * substream) in snd_cx88_hw_free() argument
526 snd_cx88_card_t *chip = snd_pcm_substream_chip(substream); in snd_cx88_hw_free()
528 if (substream->runtime->dma_area) { in snd_cx88_hw_free()
530 substream->runtime->dma_area = NULL; in snd_cx88_hw_free()
539 static int snd_cx88_prepare(struct snd_pcm_substream *substream) in snd_cx88_prepare() argument
547 static int snd_cx88_card_trigger(struct snd_pcm_substream *substream, int cmd) in snd_cx88_card_trigger() argument
549 snd_cx88_card_t *chip = snd_pcm_substream_chip(substream); in snd_cx88_card_trigger()
575 static snd_pcm_uframes_t snd_cx88_pointer(struct snd_pcm_substream *substream) in snd_cx88_pointer() argument
577 snd_cx88_card_t *chip = snd_pcm_substream_chip(substream); in snd_cx88_pointer()
578 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx88_pointer()
592 static struct page *snd_cx88_page(struct snd_pcm_substream *substream, in snd_cx88_page() argument
595 void *pageptr = substream->runtime->dma_area + offset; in snd_cx88_page()