Lines Matching refs:runtime

360 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_ymfpci_pcm_capture_interrupt()  local
361 struct snd_ymfpci_pcm *ypcm = runtime->private_data; in snd_ymfpci_pcm_capture_interrupt()
394 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; in snd_ymfpci_playback_trigger()
439 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; in snd_ymfpci_capture_trigger()
498 struct snd_pcm_runtime *runtime, in snd_ymfpci_pcm_init_voice() argument
503 u32 delta = snd_ymfpci_calc_delta(runtime->rate); in snd_ymfpci_pcm_init_voice()
504 u32 lpfQ = snd_ymfpci_calc_lpfQ(runtime->rate); in snd_ymfpci_pcm_init_voice()
505 u32 lpfK = snd_ymfpci_calc_lpfK(runtime->rate); in snd_ymfpci_pcm_init_voice()
514 if (runtime->channels == 1) { in snd_ymfpci_pcm_init_voice()
531 format = runtime->channels == 2 ? 0x00010000 : 0; in snd_ymfpci_pcm_init_voice()
532 if (snd_pcm_format_width(runtime->format) == 8) in snd_ymfpci_pcm_init_voice()
535 runtime->rate == 44100 && runtime->channels == 2 && in snd_ymfpci_pcm_init_voice()
547 if (runtime->channels == 2 && (voiceidx & 1) != 0) in snd_ymfpci_pcm_init_voice()
554 bank->base = cpu_to_le32(runtime->dma_addr); in snd_ymfpci_pcm_init_voice()
641 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_hw_params() local
642 struct snd_ymfpci_pcm *ypcm = runtime->private_data; in snd_ymfpci_playback_hw_params()
655 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_hw_free() local
658 if (runtime->private_data == NULL) in snd_ymfpci_playback_hw_free()
660 ypcm = runtime->private_data; in snd_ymfpci_playback_hw_free()
679 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_prepare() local
680 struct snd_ymfpci_pcm *ypcm = runtime->private_data; in snd_ymfpci_playback_prepare()
684 ypcm->period_size = runtime->period_size; in snd_ymfpci_playback_prepare()
685 ypcm->buffer_size = runtime->buffer_size; in snd_ymfpci_playback_prepare()
688 for (nvoice = 0; nvoice < runtime->channels; nvoice++) in snd_ymfpci_playback_prepare()
689 snd_ymfpci_pcm_init_voice(ypcm, nvoice, runtime, in snd_ymfpci_playback_prepare()
718 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_capture_prepare() local
719 struct snd_ymfpci_pcm *ypcm = runtime->private_data; in snd_ymfpci_capture_prepare()
724 ypcm->period_size = runtime->period_size; in snd_ymfpci_capture_prepare()
725 ypcm->buffer_size = runtime->buffer_size; in snd_ymfpci_capture_prepare()
729 rate = ((48000 * 4096) / runtime->rate) - 1; in snd_ymfpci_capture_prepare()
731 if (runtime->channels == 2) { in snd_ymfpci_capture_prepare()
735 if (snd_pcm_format_width(runtime->format) == 8) in snd_ymfpci_capture_prepare()
751 bank->base = cpu_to_le32(runtime->dma_addr); in snd_ymfpci_capture_prepare()
762 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_pointer() local
763 struct snd_ymfpci_pcm *ypcm = runtime->private_data; in snd_ymfpci_playback_pointer()
774 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_capture_pointer() local
775 struct snd_ymfpci_pcm *ypcm = runtime->private_data; in snd_ymfpci_capture_pointer()
892 static void snd_ymfpci_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_ymfpci_pcm_free_substream() argument
894 kfree(runtime->private_data); in snd_ymfpci_pcm_free_substream()
900 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_open_1() local
904 runtime->hw = snd_ymfpci_playback; in snd_ymfpci_playback_open_1()
906 err = snd_pcm_hw_constraint_minmax(runtime, in snd_ymfpci_playback_open_1()
911 err = snd_pcm_hw_rule_noresample(runtime, 48000); in snd_ymfpci_playback_open_1()
921 runtime->private_data = ypcm; in snd_ymfpci_playback_open_1()
922 runtime->private_free = snd_ymfpci_pcm_free_substream; in snd_ymfpci_playback_open_1()
954 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_open() local
960 ypcm = runtime->private_data; in snd_ymfpci_playback_open()
976 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_spdif_open() local
982 ypcm = runtime->private_data; in snd_ymfpci_playback_spdif_open()
1004 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_playback_4ch_open() local
1010 ypcm = runtime->private_data; in snd_ymfpci_playback_4ch_open()
1025 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_capture_open() local
1029 runtime->hw = snd_ymfpci_capture; in snd_ymfpci_capture_open()
1031 err = snd_pcm_hw_constraint_minmax(runtime, in snd_ymfpci_capture_open()
1036 err = snd_pcm_hw_rule_noresample(runtime, 48000); in snd_ymfpci_capture_open()
1048 runtime->private_data = ypcm; in snd_ymfpci_capture_open()
1049 runtime->private_free = snd_ymfpci_pcm_free_substream; in snd_ymfpci_capture_open()
1072 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; in snd_ymfpci_playback_close()
1116 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_capture_close() local
1117 struct snd_ymfpci_pcm *ypcm = runtime->private_data; in snd_ymfpci_capture_close()
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()