Lines Matching defs:substream

423 				   struct snd_pcm_substream *substream,
426 struct snd_pcm_runtime *runtime = substream->runtime;
429 unsigned int period_size = snd_pcm_lib_period_bytes(substream);
442 static void cs4231_dma_trigger(struct snd_pcm_substream *substream,
445 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
474 static int snd_cs4231_trigger(struct snd_pcm_substream *substream, int cmd)
476 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
487 snd_pcm_group_for_each_entry(s, substream) {
490 snd_pcm_trigger_done(s, substream);
493 snd_pcm_trigger_done(s, substream);
499 cs4231_dma_trigger(substream, what, 1);
502 cs4231_dma_trigger(substream, what, 0);
886 static int snd_cs4231_playback_hw_params(struct snd_pcm_substream *substream,
889 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
900 static int snd_cs4231_playback_prepare(struct snd_pcm_substream *substream)
902 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
903 struct snd_pcm_runtime *runtime = substream->runtime;
925 static int snd_cs4231_capture_hw_params(struct snd_pcm_substream *substream,
928 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
939 static int snd_cs4231_capture_prepare(struct snd_pcm_substream *substream)
941 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
988 struct snd_pcm_substream *substream)
990 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
998 ptr -= substream->runtime->dma_addr;
1000 return bytes_to_frames(substream->runtime, ptr);
1004 struct snd_pcm_substream *substream)
1006 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
1014 ptr -= substream->runtime->dma_addr;
1016 return bytes_to_frames(substream->runtime, ptr);
1130 static int snd_cs4231_playback_open(struct snd_pcm_substream *substream)
1132 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
1133 struct snd_pcm_runtime *runtime = substream->runtime;
1141 chip->playback_substream = substream;
1143 snd_pcm_set_sync(substream);
1149 static int snd_cs4231_capture_open(struct snd_pcm_substream *substream)
1151 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
1152 struct snd_pcm_runtime *runtime = substream->runtime;
1160 chip->capture_substream = substream;
1162 snd_pcm_set_sync(substream);
1168 static int snd_cs4231_playback_close(struct snd_pcm_substream *substream)
1170 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
1178 static int snd_cs4231_capture_close(struct snd_pcm_substream *substream)
1180 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);