Lines Matching defs:pitch_target
217 unsigned int pitch_target;
219 pitch_target = (rate << 8) / 375;
220 pitch_target = (pitch_target >> 1) + (pitch_target & 1);
221 return pitch_target;
231 static unsigned int emu10k1_select_interprom(unsigned int pitch_target)
233 if (pitch_target == PITCH_48000)
235 else if (pitch_target < PITCH_48000)
237 else if (pitch_target >= PITCH_96000)
239 else if (pitch_target >= PITCH_85000)
241 else if (pitch_target >= PITCH_80726)
243 else if (pitch_target >= PITCH_67882)
245 else if (pitch_target >= PITCH_57081)
282 unsigned int pitch_target;
353 pitch_target = PITCH_48000; /* Disable interpolators on emu1010 card */
355 pitch_target = emu10k1_calc_pitch_target(runtime->rate);
358 emu10k1_select_interprom(pitch_target) |
362 emu10k1_select_interprom(pitch_target) |
683 unsigned int voice, pitch, pitch_target;
693 pitch_target = PITCH_48000; /* Disable interpolators on emu1010 card */
695 pitch_target = emu10k1_calc_pitch_target(runtime->rate);
696 snd_emu10k1_ptr_write(emu, PTRX_PITCHTARGET, voice, pitch_target);
698 snd_emu10k1_ptr_write(emu, CPF_CURRENTPITCH, voice, pitch_target);