Lines Matching defs:substream

670 static int snd_sonicvibes_playback_trigger(struct snd_pcm_substream *substream,
673 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
677 static int snd_sonicvibes_capture_trigger(struct snd_pcm_substream *substream,
680 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
684 static int snd_sonicvibes_playback_prepare(struct snd_pcm_substream *substream)
686 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
687 struct snd_pcm_runtime *runtime = substream->runtime;
689 unsigned int size = snd_pcm_lib_buffer_bytes(substream);
690 unsigned int count = snd_pcm_lib_period_bytes(substream);
708 static int snd_sonicvibes_capture_prepare(struct snd_pcm_substream *substream)
710 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
711 struct snd_pcm_runtime *runtime = substream->runtime;
713 unsigned int size = snd_pcm_lib_buffer_bytes(substream);
714 unsigned int count = snd_pcm_lib_period_bytes(substream);
733 static snd_pcm_uframes_t snd_sonicvibes_playback_pointer(struct snd_pcm_substream *substream)
735 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
741 return bytes_to_frames(substream->runtime, ptr);
744 static snd_pcm_uframes_t snd_sonicvibes_capture_pointer(struct snd_pcm_substream *substream)
746 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
751 return bytes_to_frames(substream->runtime, ptr);
792 static int snd_sonicvibes_playback_open(struct snd_pcm_substream *substream)
794 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
795 struct snd_pcm_runtime *runtime = substream->runtime;
798 sonic->playback_substream = substream;
804 static int snd_sonicvibes_capture_open(struct snd_pcm_substream *substream)
806 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
807 struct snd_pcm_runtime *runtime = substream->runtime;
810 sonic->capture_substream = substream;
817 static int snd_sonicvibes_playback_close(struct snd_pcm_substream *substream)
819 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
826 static int snd_sonicvibes_capture_close(struct snd_pcm_substream *substream)
828 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);