Lines Matching refs:substream

546 static int snd_ca0106_pcm_open_playback_channel(struct snd_pcm_substream *substream,
549 struct snd_ca0106 *chip = snd_pcm_substream_chip(substream);
552 struct snd_pcm_runtime *runtime = substream->runtime;
560 epcm->substream = substream;
584 snd_pcm_set_sync(substream);
599 static int snd_ca0106_pcm_close_playback(struct snd_pcm_substream *substream)
601 struct snd_ca0106 *chip = snd_pcm_substream_chip(substream);
602 struct snd_pcm_runtime *runtime = substream->runtime;
620 static int snd_ca0106_pcm_open_playback_front(struct snd_pcm_substream *substream)
622 return snd_ca0106_pcm_open_playback_channel(substream, PCM_FRONT_CHANNEL);
625 static int snd_ca0106_pcm_open_playback_center_lfe(struct snd_pcm_substream *substream)
627 return snd_ca0106_pcm_open_playback_channel(substream, PCM_CENTER_LFE_CHANNEL);
630 static int snd_ca0106_pcm_open_playback_unknown(struct snd_pcm_substream *substream)
632 return snd_ca0106_pcm_open_playback_channel(substream, PCM_UNKNOWN_CHANNEL);
635 static int snd_ca0106_pcm_open_playback_rear(struct snd_pcm_substream *substream)
637 return snd_ca0106_pcm_open_playback_channel(substream, PCM_REAR_CHANNEL);
641 static int snd_ca0106_pcm_open_capture_channel(struct snd_pcm_substream *substream,
644 struct snd_ca0106 *chip = snd_pcm_substream_chip(substream);
647 struct snd_pcm_runtime *runtime = substream->runtime;
655 epcm->substream = substream;
684 static int snd_ca0106_pcm_close_capture(struct snd_pcm_substream *substream)
686 struct snd_ca0106 *chip = snd_pcm_substream_chip(substream);
687 struct snd_pcm_runtime *runtime = substream->runtime;
694 static int snd_ca0106_pcm_open_0_capture(struct snd_pcm_substream *substream)
696 return snd_ca0106_pcm_open_capture_channel(substream, 0);
699 static int snd_ca0106_pcm_open_1_capture(struct snd_pcm_substream *substream)
701 return snd_ca0106_pcm_open_capture_channel(substream, 1);
704 static int snd_ca0106_pcm_open_2_capture(struct snd_pcm_substream *substream)
706 return snd_ca0106_pcm_open_capture_channel(substream, 2);
709 static int snd_ca0106_pcm_open_3_capture(struct snd_pcm_substream *substream)
711 return snd_ca0106_pcm_open_capture_channel(substream, 3);
715 static int snd_ca0106_pcm_prepare_playback(struct snd_pcm_substream *substream)
717 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
718 struct snd_pcm_runtime *runtime = substream->runtime;
828 static int snd_ca0106_pcm_prepare_capture(struct snd_pcm_substream *substream)
830 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
831 struct snd_pcm_runtime *runtime = substream->runtime;
919 static int snd_ca0106_pcm_trigger_playback(struct snd_pcm_substream *substream,
922 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
944 snd_pcm_group_for_each_entry(s, substream) {
955 snd_pcm_trigger_done(s, substream);
986 static int snd_ca0106_pcm_trigger_capture(struct snd_pcm_substream *substream,
989 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
990 struct snd_pcm_runtime *runtime = substream->runtime;
1015 snd_ca0106_pcm_pointer_playback(struct snd_pcm_substream *substream)
1017 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
1018 struct snd_pcm_runtime *runtime = substream->runtime;
1045 snd_ca0106_pcm_pointer_capture(struct snd_pcm_substream *substream)
1047 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
1048 struct snd_pcm_runtime *runtime = substream->runtime;
1218 /* FIXME: Select the correct substream for period elapsed */
1220 snd_pcm_period_elapsed(pchannel->epcm->substream);
1234 /* FIXME: Select the correct substream for period elapsed */
1236 snd_pcm_period_elapsed(pchannel->epcm->substream);
1284 struct snd_pcm_substream *substream;
1320 for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
1321 substream;
1322 substream = substream->next) {
1323 snd_pcm_set_managed_buffer(substream, SNDRV_DMA_TYPE_DEV,
1328 for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
1329 substream;
1330 substream = substream->next) {
1331 snd_pcm_set_managed_buffer(substream, SNDRV_DMA_TYPE_DEV,