Lines Matching refs:adc_clock
125 u32 adc_clock = 450560; /* 45.056 MHz */ in zl10353_calc_nominal_rate() local
129 if (state->config.adc_clock) in zl10353_calc_nominal_rate()
130 adc_clock = state->config.adc_clock; in zl10353_calc_nominal_rate()
133 value = (bw * value) + adc_clock / 2; in zl10353_calc_nominal_rate()
134 *nominal_rate = div_u64(value, adc_clock); in zl10353_calc_nominal_rate()
137 __func__, bw, adc_clock, *nominal_rate); in zl10353_calc_nominal_rate()
144 u32 adc_clock = 450560; /* 45.056 MHz */ in zl10353_calc_input_freq() local
149 if (state->config.adc_clock) in zl10353_calc_input_freq()
150 adc_clock = state->config.adc_clock; in zl10353_calc_input_freq()
154 if (adc_clock >= if2 * 2) in zl10353_calc_input_freq()
157 ife = adc_clock - (if2 % adc_clock); in zl10353_calc_input_freq()
158 if (ife > adc_clock / 2) in zl10353_calc_input_freq()
159 ife = adc_clock - ife; in zl10353_calc_input_freq()
161 value = div_u64((u64)65536 * ife + adc_clock / 2, adc_clock); in zl10353_calc_input_freq()
165 __func__, if2, ife, adc_clock, -(int)value, *input_freq); in zl10353_calc_input_freq()