Lines Matching refs:pitch_target
206 unsigned int pitch_target;
208 pitch_target = (rate << 8) / 375;
209 pitch_target = (pitch_target >> 1) + (pitch_target & 1);
210 return pitch_target;
220 static unsigned int emu10k1_select_interprom(unsigned int pitch_target)
222 if (pitch_target == PITCH_48000)
224 else if (pitch_target < PITCH_48000)
226 else if (pitch_target >= PITCH_96000)
228 else if (pitch_target >= PITCH_85000)
230 else if (pitch_target >= PITCH_80726)
232 else if (pitch_target >= PITCH_67882)
234 else if (pitch_target >= PITCH_57081)
271 unsigned int pitch_target;
343 pitch_target = PITCH_48000; /* Disable interpolators on emu1010 card */
345 pitch_target = emu10k1_calc_pitch_target(runtime->rate);
348 emu10k1_select_interprom(pitch_target) |
352 emu10k1_select_interprom(pitch_target) |
676 unsigned int voice, pitch, pitch_target;
686 pitch_target = PITCH_48000; /* Disable interpolators on emu1010 card */
688 pitch_target = emu10k1_calc_pitch_target(runtime->rate);
689 snd_emu10k1_ptr_write(emu, PTRX_PITCHTARGET, voice, pitch_target);
691 snd_emu10k1_ptr_write(emu, CPF_CURRENTPITCH, voice, pitch_target);