Lines Matching refs:adc_clock
115 u32 adc_clock = 450560; /* 45.056 MHz */ in zl10353_calc_nominal_rate() local
119 if (state->config.adc_clock) in zl10353_calc_nominal_rate()
120 adc_clock = state->config.adc_clock; in zl10353_calc_nominal_rate()
123 value = (bw * value) + adc_clock / 2; in zl10353_calc_nominal_rate()
124 *nominal_rate = div_u64(value, adc_clock); in zl10353_calc_nominal_rate()
127 __func__, bw, adc_clock, *nominal_rate); in zl10353_calc_nominal_rate()
134 u32 adc_clock = 450560; /* 45.056 MHz */ in zl10353_calc_input_freq() local
139 if (state->config.adc_clock) in zl10353_calc_input_freq()
140 adc_clock = state->config.adc_clock; in zl10353_calc_input_freq()
144 if (adc_clock >= if2 * 2) in zl10353_calc_input_freq()
147 ife = adc_clock - (if2 % adc_clock); in zl10353_calc_input_freq()
148 if (ife > adc_clock / 2) in zl10353_calc_input_freq()
149 ife = adc_clock - ife; in zl10353_calc_input_freq()
151 value = div_u64((u64)65536 * ife + adc_clock / 2, adc_clock); in zl10353_calc_input_freq()
155 __func__, if2, ife, adc_clock, -(int)value, *input_freq); in zl10353_calc_input_freq()