Lines Matching refs:substream

201 	struct snd_pcm_substream *substream;  member
227 static int snd_bt87x_create_risc(struct snd_bt87x *chip, struct snd_pcm_substream *substream, in snd_bt87x_create_risc() argument
263 addr = snd_pcm_sgbuf_get_addr(substream, offset); in snd_bt87x_create_risc()
351 snd_pcm_period_elapsed(chip->substream); in snd_bt87x_interrupt()
421 static int snd_bt87x_pcm_open(struct snd_pcm_substream *substream) in snd_bt87x_pcm_open() argument
423 struct snd_bt87x *chip = snd_pcm_substream_chip(substream); in snd_bt87x_pcm_open()
424 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bt87x_pcm_open()
430 if (substream->pcm->device == DEVICE_DIGITAL) in snd_bt87x_pcm_open()
441 chip->substream = substream; in snd_bt87x_pcm_open()
450 static int snd_bt87x_close(struct snd_pcm_substream *substream) in snd_bt87x_close() argument
452 struct snd_bt87x *chip = snd_pcm_substream_chip(substream); in snd_bt87x_close()
459 chip->substream = NULL; in snd_bt87x_close()
465 static int snd_bt87x_hw_params(struct snd_pcm_substream *substream, in snd_bt87x_hw_params() argument
468 struct snd_bt87x *chip = snd_pcm_substream_chip(substream); in snd_bt87x_hw_params()
471 err = snd_pcm_lib_malloc_pages(substream, in snd_bt87x_hw_params()
475 return snd_bt87x_create_risc(chip, substream, in snd_bt87x_hw_params()
480 static int snd_bt87x_hw_free(struct snd_pcm_substream *substream) in snd_bt87x_hw_free() argument
482 struct snd_bt87x *chip = snd_pcm_substream_chip(substream); in snd_bt87x_hw_free()
485 snd_pcm_lib_free_pages(substream); in snd_bt87x_hw_free()
489 static int snd_bt87x_prepare(struct snd_pcm_substream *substream) in snd_bt87x_prepare() argument
491 struct snd_bt87x *chip = snd_pcm_substream_chip(substream); in snd_bt87x_prepare()
492 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bt87x_prepare()
531 static int snd_bt87x_trigger(struct snd_pcm_substream *substream, int cmd) in snd_bt87x_trigger() argument
533 struct snd_bt87x *chip = snd_pcm_substream_chip(substream); in snd_bt87x_trigger()
545 static snd_pcm_uframes_t snd_bt87x_pointer(struct snd_pcm_substream *substream) in snd_bt87x_pointer() argument
547 struct snd_bt87x *chip = snd_pcm_substream_chip(substream); in snd_bt87x_pointer()
548 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bt87x_pointer()