Lines Matching defs:substream
424 struct snd_pcm_substream *substream,
427 struct snd_pcm_runtime *runtime = substream->runtime;
430 unsigned int period_size = snd_pcm_lib_period_bytes(substream);
443 static void cs4231_dma_trigger(struct snd_pcm_substream *substream,
446 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
475 static int snd_cs4231_trigger(struct snd_pcm_substream *substream, int cmd)
477 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
488 snd_pcm_group_for_each_entry(s, substream) {
491 snd_pcm_trigger_done(s, substream);
494 snd_pcm_trigger_done(s, substream);
500 cs4231_dma_trigger(substream, what, 1);
503 cs4231_dma_trigger(substream, what, 0);
887 static int snd_cs4231_playback_hw_params(struct snd_pcm_substream *substream,
890 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
901 static int snd_cs4231_playback_prepare(struct snd_pcm_substream *substream)
903 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
904 struct snd_pcm_runtime *runtime = substream->runtime;
926 static int snd_cs4231_capture_hw_params(struct snd_pcm_substream *substream,
929 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
940 static int snd_cs4231_capture_prepare(struct snd_pcm_substream *substream)
942 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
989 struct snd_pcm_substream *substream)
991 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
999 ptr -= substream->runtime->dma_addr;
1001 return bytes_to_frames(substream->runtime, ptr);
1005 struct snd_pcm_substream *substream)
1007 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
1015 ptr -= substream->runtime->dma_addr;
1017 return bytes_to_frames(substream->runtime, ptr);
1131 static int snd_cs4231_playback_open(struct snd_pcm_substream *substream)
1133 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
1134 struct snd_pcm_runtime *runtime = substream->runtime;
1142 chip->playback_substream = substream;
1144 snd_pcm_set_sync(substream);
1150 static int snd_cs4231_capture_open(struct snd_pcm_substream *substream)
1152 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
1153 struct snd_pcm_runtime *runtime = substream->runtime;
1161 chip->capture_substream = substream;
1163 snd_pcm_set_sync(substream);
1169 static int snd_cs4231_playback_close(struct snd_pcm_substream *substream)
1171 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
1179 static int snd_cs4231_capture_close(struct snd_pcm_substream *substream)
1181 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);