Lines Matching refs:substream

311 	if (ypcm->substream == NULL)  in snd_ymfpci_pcm_interrupt()
331 snd_pcm_period_elapsed(ypcm->substream); in snd_ymfpci_pcm_interrupt()
336 unsigned int subs = ypcm->substream->number; in snd_ymfpci_pcm_interrupt()
358 static void snd_ymfpci_pcm_capture_interrupt(struct snd_pcm_substream *substream) in snd_ymfpci_pcm_capture_interrupt() argument
360 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_pcm_capture_interrupt()
383 snd_pcm_period_elapsed(substream); in snd_ymfpci_pcm_capture_interrupt()
390 static int snd_ymfpci_playback_trigger(struct snd_pcm_substream *substream, in snd_ymfpci_playback_trigger() argument
393 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_trigger()
394 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; in snd_ymfpci_playback_trigger()
413 if (substream->pcm == chip->pcm && !ypcm->use_441_slot) { in snd_ymfpci_playback_trigger()
414 kctl = chip->pcm_mixer[substream->number].ctl; in snd_ymfpci_playback_trigger()
435 static int snd_ymfpci_capture_trigger(struct snd_pcm_substream *substream, in snd_ymfpci_capture_trigger() argument
438 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_capture_trigger()
439 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; in snd_ymfpci_capture_trigger()
523 [ypcm->substream->number].left << 15); in snd_ymfpci_pcm_init_voice()
525 [ypcm->substream->number].right << 15); in snd_ymfpci_pcm_init_voice()
638 static int snd_ymfpci_playback_hw_params(struct snd_pcm_substream *substream, in snd_ymfpci_playback_hw_params() argument
641 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_hw_params()
645 if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0) in snd_ymfpci_playback_hw_params()
652 static int snd_ymfpci_playback_hw_free(struct snd_pcm_substream *substream) in snd_ymfpci_playback_hw_free() argument
654 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_hw_free()
655 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_hw_free()
664 snd_pcm_lib_free_pages(substream); in snd_ymfpci_playback_hw_free()
676 static int snd_ymfpci_playback_prepare(struct snd_pcm_substream *substream) in snd_ymfpci_playback_prepare() argument
678 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_prepare()
679 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_prepare()
690 substream->pcm == chip->pcm); in snd_ymfpci_playback_prepare()
692 if (substream->pcm == chip->pcm && !ypcm->use_441_slot) { in snd_ymfpci_playback_prepare()
693 kctl = chip->pcm_mixer[substream->number].ctl; in snd_ymfpci_playback_prepare()
700 static int snd_ymfpci_capture_hw_params(struct snd_pcm_substream *substream, in snd_ymfpci_capture_hw_params() argument
703 return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params)); in snd_ymfpci_capture_hw_params()
706 static int snd_ymfpci_capture_hw_free(struct snd_pcm_substream *substream) in snd_ymfpci_capture_hw_free() argument
708 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_capture_hw_free()
712 return snd_pcm_lib_free_pages(substream); in snd_ymfpci_capture_hw_free()
715 static int snd_ymfpci_capture_prepare(struct snd_pcm_substream *substream) in snd_ymfpci_capture_prepare() argument
717 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_capture_prepare()
718 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_capture_prepare()
759 static snd_pcm_uframes_t snd_ymfpci_playback_pointer(struct snd_pcm_substream *substream) in snd_ymfpci_playback_pointer() argument
761 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_pointer()
762 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_pointer()
771 static snd_pcm_uframes_t snd_ymfpci_capture_pointer(struct snd_pcm_substream *substream) in snd_ymfpci_capture_pointer() argument
773 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_capture_pointer()
774 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_capture_pointer()
897 static int snd_ymfpci_playback_open_1(struct snd_pcm_substream *substream) in snd_ymfpci_playback_open_1() argument
899 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_open_1()
900 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_open_1()
920 ypcm->substream = substream; in snd_ymfpci_playback_open_1()
951 static int snd_ymfpci_playback_open(struct snd_pcm_substream *substream) in snd_ymfpci_playback_open() argument
953 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_open()
954 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_open()
958 if ((err = snd_ymfpci_playback_open_1(substream)) < 0) in snd_ymfpci_playback_open()
973 static int snd_ymfpci_playback_spdif_open(struct snd_pcm_substream *substream) in snd_ymfpci_playback_spdif_open() argument
975 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_spdif_open()
976 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_spdif_open()
980 if ((err = snd_ymfpci_playback_open_1(substream)) < 0) in snd_ymfpci_playback_spdif_open()
1001 static int snd_ymfpci_playback_4ch_open(struct snd_pcm_substream *substream) in snd_ymfpci_playback_4ch_open() argument
1003 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_4ch_open()
1004 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_4ch_open()
1008 if ((err = snd_ymfpci_playback_open_1(substream)) < 0) in snd_ymfpci_playback_4ch_open()
1021 static int snd_ymfpci_capture_open(struct snd_pcm_substream *substream, in snd_ymfpci_capture_open() argument
1024 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_capture_open()
1025 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_capture_open()
1045 ypcm->substream = substream; in snd_ymfpci_capture_open()
1047 chip->capture_substream[capture_bank_number] = substream; in snd_ymfpci_capture_open()
1054 static int snd_ymfpci_capture_rec_open(struct snd_pcm_substream *substream) in snd_ymfpci_capture_rec_open() argument
1056 return snd_ymfpci_capture_open(substream, 0); in snd_ymfpci_capture_rec_open()
1059 static int snd_ymfpci_capture_ac97_open(struct snd_pcm_substream *substream) in snd_ymfpci_capture_ac97_open() argument
1061 return snd_ymfpci_capture_open(substream, 1); in snd_ymfpci_capture_ac97_open()
1064 static int snd_ymfpci_playback_close_1(struct snd_pcm_substream *substream) in snd_ymfpci_playback_close_1() argument
1069 static int snd_ymfpci_playback_close(struct snd_pcm_substream *substream) in snd_ymfpci_playback_close() argument
1071 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_close()
1072 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; in snd_ymfpci_playback_close()
1080 return snd_ymfpci_playback_close_1(substream); in snd_ymfpci_playback_close()
1083 static int snd_ymfpci_playback_spdif_close(struct snd_pcm_substream *substream) in snd_ymfpci_playback_spdif_close() argument
1085 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_spdif_close()
1097 return snd_ymfpci_playback_close_1(substream); in snd_ymfpci_playback_spdif_close()
1100 static int snd_ymfpci_playback_4ch_close(struct snd_pcm_substream *substream) in snd_ymfpci_playback_4ch_close() argument
1102 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_playback_4ch_close()
1110 return snd_ymfpci_playback_close_1(substream); in snd_ymfpci_playback_4ch_close()
1113 static int snd_ymfpci_capture_close(struct snd_pcm_substream *substream) in snd_ymfpci_capture_close() argument
1115 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); in snd_ymfpci_capture_close()
1116 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_capture_close()
1754 struct snd_pcm_substream *substream; in snd_ymfpci_pcm_vol_put() local
1766 substream = (struct snd_pcm_substream *)kcontrol->private_value; in snd_ymfpci_pcm_vol_put()
1768 if (substream->runtime && substream->runtime->private_data) { in snd_ymfpci_pcm_vol_put()
1769 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; in snd_ymfpci_pcm_vol_put()
1810 struct snd_pcm_substream *substream; in snd_ymfpci_mixer() local
1872 substream = chip->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in snd_ymfpci_mixer()
1879 kctl->private_value = (unsigned long)substream; in snd_ymfpci_mixer()
1885 substream = substream->next; in snd_ymfpci_mixer()