Lines Matching refs:pitch
197 unsigned int pitch;
200 /* get pitch and convert to fixed-point 8.24 format. */
201 pitch = (input_rate / output_rate) << 24;
217 pitch |= input_rate;
220 return pitch;
223 static int select_rom(unsigned int pitch)
225 if (pitch > 0x00428f5c && pitch < 0x01b851ec) {
226 /* 0.26 <= pitch <= 1.72 */
228 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) {
229 /* pitch == 1.8375 */
231 } else if (pitch == 0x02000000) {
232 /* pitch == 2 */
234 } else if (pitch <= 0x08000000) {
235 /* 0 <= pitch <= 8 */
253 unsigned int pitch;
266 pitch = atc_get_pitch(apcm->substream->runtime->rate,
269 src->ops->set_pitch(src, pitch);
270 src->ops->set_rom(src, select_rom(pitch));
454 unsigned int pitch;
464 unsigned int pitch;
466 /* get pitch and convert to fixed-point 8.24 format. */
467 pitch = atc_get_pitch((atc->rsr * atc->msr),
471 if (1 == atc->msr) { /* FIXME: do we really need SRC here if pitch==1 */
473 conf[0].pitch = pitch;
477 if (0x8000000 < pitch) {
480 conf[0].pitch = (atc->msr << 24);
484 conf[1].pitch = atc_get_pitch(atc->rsr,
489 } else if (0x1000000 < pitch) {
492 conf[0].pitch = pitch;
514 unsigned int pitch;
523 * by pitch value. */
527 /* get pitch and convert to fixed-point 8.24 format. */
528 pitch = atc_get_pitch((atc->rsr * atc->msr),
535 if ((multi > 1) && (0x8000000 >= pitch)) {
573 pitch = src_node_conf[i/multi].pitch;
574 src->ops->set_pitch(src, pitch);
575 src->ops->set_rom(src, select_rom(pitch));
604 pitch = atc_get_pitch((atc->rsr * atc->msr),
611 srcimp_dsc.msr = (pitch <= 0x8000000) ? atc->msr : 1;
632 src->ops->set_pitch(src, pitch);
655 unsigned int pitch;
691 pitch = atc_get_pitch((atc->rsr * atc->msr),
694 if ((multi > 1) && (pitch <= 0x8000000)) {
794 unsigned int pitch, rsr = atc->pll_rate;
810 pitch = atc_get_pitch(apcm->substream->runtime->rate, (rsr * desc.msr));
812 src->ops->set_pitch(src, pitch);
813 src->ops->set_rom(src, select_rom(pitch));