Lines Matching refs:substream
684 static int snd_sonicvibes_playback_trigger(struct snd_pcm_substream *substream, in snd_sonicvibes_playback_trigger() argument
687 struct sonicvibes *sonic = snd_pcm_substream_chip(substream); in snd_sonicvibes_playback_trigger()
691 static int snd_sonicvibes_capture_trigger(struct snd_pcm_substream *substream, in snd_sonicvibes_capture_trigger() argument
694 struct sonicvibes *sonic = snd_pcm_substream_chip(substream); in snd_sonicvibes_capture_trigger()
698 static int snd_sonicvibes_hw_params(struct snd_pcm_substream *substream, in snd_sonicvibes_hw_params() argument
701 return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params)); in snd_sonicvibes_hw_params()
704 static int snd_sonicvibes_hw_free(struct snd_pcm_substream *substream) in snd_sonicvibes_hw_free() argument
706 return snd_pcm_lib_free_pages(substream); in snd_sonicvibes_hw_free()
709 static int snd_sonicvibes_playback_prepare(struct snd_pcm_substream *substream) in snd_sonicvibes_playback_prepare() argument
711 struct sonicvibes *sonic = snd_pcm_substream_chip(substream); in snd_sonicvibes_playback_prepare()
712 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sonicvibes_playback_prepare()
714 unsigned int size = snd_pcm_lib_buffer_bytes(substream); in snd_sonicvibes_playback_prepare()
715 unsigned int count = snd_pcm_lib_period_bytes(substream); in snd_sonicvibes_playback_prepare()
733 static int snd_sonicvibes_capture_prepare(struct snd_pcm_substream *substream) in snd_sonicvibes_capture_prepare() argument
735 struct sonicvibes *sonic = snd_pcm_substream_chip(substream); in snd_sonicvibes_capture_prepare()
736 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sonicvibes_capture_prepare()
738 unsigned int size = snd_pcm_lib_buffer_bytes(substream); in snd_sonicvibes_capture_prepare()
739 unsigned int count = snd_pcm_lib_period_bytes(substream); in snd_sonicvibes_capture_prepare()
758 static snd_pcm_uframes_t snd_sonicvibes_playback_pointer(struct snd_pcm_substream *substream) in snd_sonicvibes_playback_pointer() argument
760 struct sonicvibes *sonic = snd_pcm_substream_chip(substream); in snd_sonicvibes_playback_pointer()
766 return bytes_to_frames(substream->runtime, ptr); in snd_sonicvibes_playback_pointer()
769 static snd_pcm_uframes_t snd_sonicvibes_capture_pointer(struct snd_pcm_substream *substream) in snd_sonicvibes_capture_pointer() argument
771 struct sonicvibes *sonic = snd_pcm_substream_chip(substream); in snd_sonicvibes_capture_pointer()
776 return bytes_to_frames(substream->runtime, ptr); in snd_sonicvibes_capture_pointer()
817 static int snd_sonicvibes_playback_open(struct snd_pcm_substream *substream) in snd_sonicvibes_playback_open() argument
819 struct sonicvibes *sonic = snd_pcm_substream_chip(substream); in snd_sonicvibes_playback_open()
820 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sonicvibes_playback_open()
823 sonic->playback_substream = substream; in snd_sonicvibes_playback_open()
829 static int snd_sonicvibes_capture_open(struct snd_pcm_substream *substream) in snd_sonicvibes_capture_open() argument
831 struct sonicvibes *sonic = snd_pcm_substream_chip(substream); in snd_sonicvibes_capture_open()
832 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sonicvibes_capture_open()
835 sonic->capture_substream = substream; in snd_sonicvibes_capture_open()
842 static int snd_sonicvibes_playback_close(struct snd_pcm_substream *substream) in snd_sonicvibes_playback_close() argument
844 struct sonicvibes *sonic = snd_pcm_substream_chip(substream); in snd_sonicvibes_playback_close()
851 static int snd_sonicvibes_capture_close(struct snd_pcm_substream *substream) in snd_sonicvibes_capture_close() argument
853 struct sonicvibes *sonic = snd_pcm_substream_chip(substream); in snd_sonicvibes_capture_close()