Lines Matching refs:runtime
888 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ensoniq_playback1_prepare() local
893 if (snd_pcm_format_width(runtime->format) == 16) in snd_ensoniq_playback1_prepare()
895 if (runtime->channels > 1) in snd_ensoniq_playback1_prepare()
901 if (runtime->rate == 48000) in snd_ensoniq_playback1_prepare()
908 outl(runtime->dma_addr, ES_REG(ensoniq, DAC1_FRAME)); in snd_ensoniq_playback1_prepare()
917 switch (runtime->rate) { in snd_ensoniq_playback1_prepare()
928 snd_es1371_dac1_rate(ensoniq, runtime->rate); in snd_ensoniq_playback1_prepare()
936 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ensoniq_playback2_prepare() local
941 if (snd_pcm_format_width(runtime->format) == 16) in snd_ensoniq_playback2_prepare()
943 if (runtime->channels > 1) in snd_ensoniq_playback2_prepare()
949 outl(runtime->dma_addr, ES_REG(ensoniq, DAC2_FRAME)); in snd_ensoniq_playback2_prepare()
961 ensoniq->ctrl |= ES_1370_PCLKDIVO(ES_1370_SRTODIV(runtime->rate)); in snd_ensoniq_playback2_prepare()
968 snd_es1371_dac2_rate(ensoniq, runtime->rate); in snd_ensoniq_playback2_prepare()
976 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ensoniq_capture_prepare() local
981 if (snd_pcm_format_width(runtime->format) == 16) in snd_ensoniq_capture_prepare()
983 if (runtime->channels > 1) in snd_ensoniq_capture_prepare()
989 outl(runtime->dma_addr, ES_REG(ensoniq, ADC_FRAME)); in snd_ensoniq_capture_prepare()
999 ensoniq->ctrl |= ES_1370_PCLKDIVO(ES_1370_SRTODIV(runtime->rate)); in snd_ensoniq_capture_prepare()
1006 snd_es1371_adc_rate(ensoniq, runtime->rate); in snd_ensoniq_capture_prepare()
1020 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ensoniq_playback1_pointer()
1037 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ensoniq_playback2_pointer()
1054 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ensoniq_capture_pointer()
1131 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ensoniq_playback1_open() local
1135 runtime->hw = snd_ensoniq_playback1; in snd_ensoniq_playback1_open()
1142 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_ensoniq_playback1_open()
1145 snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_ensoniq_playback1_open()
1154 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ensoniq_playback2_open() local
1158 runtime->hw = snd_ensoniq_playback2; in snd_ensoniq_playback2_open()
1165 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_ensoniq_playback2_open()
1168 snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_ensoniq_playback2_open()
1177 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ensoniq_capture_open() local
1181 runtime->hw = snd_ensoniq_capture; in snd_ensoniq_capture_open()
1184 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_ensoniq_capture_open()
1187 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_ensoniq_capture_open()