Lines Matching refs:adc_clock
117 u32 adc_clock = 20480; /* 20.340 MHz */
132 if (state->config.adc_clock)
133 adc_clock = state->config.adc_clock;
136 value = value * 1000 / adc_clock;
137 dprintk("%s: bw %d, adc_clock %d => 0x%x\n",
138 __func__, bw, adc_clock, value);
146 int adc_clock = 20480; /* 20.480000 MHz */
150 if (state->config.adc_clock)
151 adc_clock = state->config.adc_clock;
155 if (adc_clock >= if2 * 2)
158 ife = adc_clock - (if2 % adc_clock);
159 if (ife > adc_clock / 2)
160 ife = adc_clock - ife;
162 value = -16374 * ife / adc_clock;
163 dprintk("%s: if2 %d, ife %d, adc_clock %d => %d / 0x%x\n",
164 __func__, if2, ife, adc_clock, value, value & 0x3fff);