Lines Matching full:pitch

194 	unsigned int pitch;  in atc_get_pitch()  local
197 /* get pitch and convert to fixed-point 8.24 format. */ in atc_get_pitch()
198 pitch = (input_rate / output_rate) << 24; in atc_get_pitch()
214 pitch |= input_rate; in atc_get_pitch()
217 return pitch; in atc_get_pitch()
220 static int select_rom(unsigned int pitch) in select_rom() argument
222 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom()
223 /* 0.26 <= pitch <= 1.72 */ in select_rom()
225 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom()
226 /* pitch == 1.8375 */ in select_rom()
228 } else if (pitch == 0x02000000) { in select_rom()
229 /* pitch == 2 */ in select_rom()
231 } else if (pitch <= 0x08000000) { in select_rom()
232 /* 0 <= pitch <= 8 */ in select_rom()
250 unsigned int pitch; in atc_pcm_playback_prepare() local
263 pitch = atc_get_pitch(apcm->substream->runtime->rate, in atc_pcm_playback_prepare()
266 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare()
267 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare()
451 unsigned int pitch; member
461 unsigned int pitch; in setup_src_node_conf() local
463 /* get pitch and convert to fixed-point 8.24 format. */ in setup_src_node_conf()
464 pitch = atc_get_pitch((atc->rsr * atc->msr), in setup_src_node_conf()
468 if (1 == atc->msr) { /* FIXME: do we really need SRC here if pitch==1 */ in setup_src_node_conf()
470 conf[0].pitch = pitch; in setup_src_node_conf()
474 if (0x8000000 < pitch) { in setup_src_node_conf()
477 conf[0].pitch = (atc->msr << 24); in setup_src_node_conf()
481 conf[1].pitch = atc_get_pitch(atc->rsr, in setup_src_node_conf()
486 } else if (0x1000000 < pitch) { in setup_src_node_conf()
489 conf[0].pitch = pitch; in setup_src_node_conf()
511 unsigned int pitch; in atc_pcm_capture_get_resources() local
520 * by pitch value. */ in atc_pcm_capture_get_resources()
524 /* get pitch and convert to fixed-point 8.24 format. */ in atc_pcm_capture_get_resources()
525 pitch = atc_get_pitch((atc->rsr * atc->msr), in atc_pcm_capture_get_resources()
532 if ((multi > 1) && (0x8000000 >= pitch)) { in atc_pcm_capture_get_resources()
570 pitch = src_node_conf[i/multi].pitch; in atc_pcm_capture_get_resources()
571 src->ops->set_pitch(src, pitch); in atc_pcm_capture_get_resources()
572 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_capture_get_resources()
601 pitch = atc_get_pitch((atc->rsr * atc->msr), in atc_pcm_capture_get_resources()
608 srcimp_dsc.msr = (pitch <= 0x8000000) ? atc->msr : 1; in atc_pcm_capture_get_resources()
629 src->ops->set_pitch(src, pitch); in atc_pcm_capture_get_resources()
652 unsigned int pitch; in atc_pcm_capture_prepare() local
688 pitch = atc_get_pitch((atc->rsr * atc->msr), in atc_pcm_capture_prepare()
691 if ((multi > 1) && (pitch <= 0x8000000)) { in atc_pcm_capture_prepare()
791 unsigned int pitch, rsr = atc->pll_rate; in spdif_passthru_playback_get_resources() local
807 pitch = atc_get_pitch(apcm->substream->runtime->rate, (rsr * desc.msr)); in spdif_passthru_playback_get_resources()
809 src->ops->set_pitch(src, pitch); in spdif_passthru_playback_get_resources()
810 src->ops->set_rom(src, select_rom(pitch)); in spdif_passthru_playback_get_resources()