Lines Matching refs:pitch_target

218 	unsigned int pitch_target;  in emu10k1_calc_pitch_target()  local
220 pitch_target = (rate << 8) / 375; in emu10k1_calc_pitch_target()
221 pitch_target = (pitch_target >> 1) + (pitch_target & 1); in emu10k1_calc_pitch_target()
222 return pitch_target; in emu10k1_calc_pitch_target()
232 static unsigned int emu10k1_select_interprom(unsigned int pitch_target) in emu10k1_select_interprom() argument
234 if (pitch_target == PITCH_48000) in emu10k1_select_interprom()
236 else if (pitch_target < PITCH_48000) in emu10k1_select_interprom()
238 else if (pitch_target >= PITCH_96000) in emu10k1_select_interprom()
240 else if (pitch_target >= PITCH_85000) in emu10k1_select_interprom()
242 else if (pitch_target >= PITCH_80726) in emu10k1_select_interprom()
244 else if (pitch_target >= PITCH_67882) in emu10k1_select_interprom()
246 else if (pitch_target >= PITCH_57081) in emu10k1_select_interprom()
283 unsigned int pitch_target; in snd_emu10k1_pcm_init_voice() local
354 pitch_target = PITCH_48000; /* Disable interpolators on emu1010 card */ in snd_emu10k1_pcm_init_voice()
356 pitch_target = emu10k1_calc_pitch_target(runtime->rate); in snd_emu10k1_pcm_init_voice()
359 emu10k1_select_interprom(pitch_target) | in snd_emu10k1_pcm_init_voice()
363 emu10k1_select_interprom(pitch_target) | in snd_emu10k1_pcm_init_voice()
685 unsigned int voice, pitch, pitch_target; in snd_emu10k1_playback_trigger_voice() local
695 pitch_target = PITCH_48000; /* Disable interpolators on emu1010 card */ in snd_emu10k1_playback_trigger_voice()
697 pitch_target = emu10k1_calc_pitch_target(runtime->rate); in snd_emu10k1_playback_trigger_voice()
698 snd_emu10k1_ptr_write(emu, PTRX_PITCHTARGET, voice, pitch_target); in snd_emu10k1_playback_trigger_voice()
700 snd_emu10k1_ptr_write(emu, CPF_CURRENTPITCH, voice, pitch_target); in snd_emu10k1_playback_trigger_voice()