Lines Matching defs:substream
669 static int snd_sonicvibes_playback_trigger(struct snd_pcm_substream *substream,
672 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
676 static int snd_sonicvibes_capture_trigger(struct snd_pcm_substream *substream,
679 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
683 static int snd_sonicvibes_playback_prepare(struct snd_pcm_substream *substream)
685 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
686 struct snd_pcm_runtime *runtime = substream->runtime;
688 unsigned int size = snd_pcm_lib_buffer_bytes(substream);
689 unsigned int count = snd_pcm_lib_period_bytes(substream);
707 static int snd_sonicvibes_capture_prepare(struct snd_pcm_substream *substream)
709 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
710 struct snd_pcm_runtime *runtime = substream->runtime;
712 unsigned int size = snd_pcm_lib_buffer_bytes(substream);
713 unsigned int count = snd_pcm_lib_period_bytes(substream);
732 static snd_pcm_uframes_t snd_sonicvibes_playback_pointer(struct snd_pcm_substream *substream)
734 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
740 return bytes_to_frames(substream->runtime, ptr);
743 static snd_pcm_uframes_t snd_sonicvibes_capture_pointer(struct snd_pcm_substream *substream)
745 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
750 return bytes_to_frames(substream->runtime, ptr);
791 static int snd_sonicvibes_playback_open(struct snd_pcm_substream *substream)
793 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
794 struct snd_pcm_runtime *runtime = substream->runtime;
797 sonic->playback_substream = substream;
803 static int snd_sonicvibes_capture_open(struct snd_pcm_substream *substream)
805 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
806 struct snd_pcm_runtime *runtime = substream->runtime;
809 sonic->capture_substream = substream;
816 static int snd_sonicvibes_playback_close(struct snd_pcm_substream *substream)
818 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
825 static int snd_sonicvibes_capture_close(struct snd_pcm_substream *substream)
827 struct sonicvibes *sonic = snd_pcm_substream_chip(substream);