Lines Matching refs:substream
94 struct snd_pcm_substream *substream; member
293 snd_pcm_period_elapsed(voice->substream); in sis_update_voice()
345 snd_pcm_period_elapsed(voice->substream); in sis_interrupt()
447 static int sis_alloc_timing_voice(struct snd_pcm_substream *substream, in sis_alloc_timing_voice() argument
450 struct sis7019 *sis = snd_pcm_substream_chip(substream); in sis_alloc_timing_voice()
451 struct snd_pcm_runtime *runtime = substream->runtime; in sis_alloc_timing_voice()
474 voice->timing->substream = substream; in sis_alloc_timing_voice()
483 static int sis_playback_open(struct snd_pcm_substream *substream) in sis_playback_open() argument
485 struct sis7019 *sis = snd_pcm_substream_chip(substream); in sis_playback_open()
486 struct snd_pcm_runtime *runtime = substream->runtime; in sis_playback_open()
493 voice->substream = substream; in sis_playback_open()
500 snd_pcm_set_sync(substream); in sis_playback_open()
504 static int sis_substream_close(struct snd_pcm_substream *substream) in sis_substream_close() argument
506 struct sis7019 *sis = snd_pcm_substream_chip(substream); in sis_substream_close()
507 struct snd_pcm_runtime *runtime = substream->runtime; in sis_substream_close()
514 static int sis_playback_hw_params(struct snd_pcm_substream *substream, in sis_playback_hw_params() argument
517 return snd_pcm_lib_malloc_pages(substream, in sis_playback_hw_params()
521 static int sis_hw_free(struct snd_pcm_substream *substream) in sis_hw_free() argument
523 return snd_pcm_lib_free_pages(substream); in sis_hw_free()
526 static int sis_pcm_playback_prepare(struct snd_pcm_substream *substream) in sis_pcm_playback_prepare() argument
528 struct snd_pcm_runtime *runtime = substream->runtime; in sis_pcm_playback_prepare()
592 static int sis_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in sis_pcm_trigger() argument
594 struct sis7019 *sis = snd_pcm_substream_chip(substream); in sis_pcm_trigger()
622 snd_pcm_group_for_each_entry(s, substream) { in sis_pcm_trigger()
640 snd_pcm_trigger_done(s, substream); in sis_pcm_trigger()
661 static snd_pcm_uframes_t sis_pcm_pointer(struct snd_pcm_substream *substream) in sis_pcm_pointer() argument
663 struct snd_pcm_runtime *runtime = substream->runtime; in sis_pcm_pointer()
672 static int sis_capture_open(struct snd_pcm_substream *substream) in sis_capture_open() argument
674 struct sis7019 *sis = snd_pcm_substream_chip(substream); in sis_capture_open()
675 struct snd_pcm_runtime *runtime = substream->runtime; in sis_capture_open()
692 voice->substream = substream; in sis_capture_open()
701 snd_pcm_set_sync(substream); in sis_capture_open()
705 static int sis_capture_hw_params(struct snd_pcm_substream *substream, in sis_capture_hw_params() argument
708 struct sis7019 *sis = snd_pcm_substream_chip(substream); in sis_capture_hw_params()
716 rc = snd_pcm_lib_malloc_pages(substream, in sis_capture_hw_params()
721 rc = sis_alloc_timing_voice(substream, hw_params); in sis_capture_hw_params()
728 struct snd_pcm_substream *substream) in sis_prepare_timing_voice() argument
730 struct sis7019 *sis = snd_pcm_substream_chip(substream); in sis_prepare_timing_voice()
731 struct snd_pcm_runtime *runtime = substream->runtime; in sis_prepare_timing_voice()
830 static int sis_pcm_capture_prepare(struct snd_pcm_substream *substream) in sis_pcm_capture_prepare() argument
832 struct snd_pcm_runtime *runtime = substream->runtime; in sis_pcm_capture_prepare()
858 sis_prepare_timing_voice(voice, substream); in sis_pcm_capture_prepare()