Lines Matching refs:captrim
149 /* for the captrim/dc-offset search */
154 s8 captrim;
2095 /* prepare a complete captrim */
2097 state->step = state->captrim = state->fcaptrim = 64;
2102 /* do a minimal captrim even if the frequency has not changed */
2104 state->captrim = state->fcaptrim = dib0090_read_reg(state, 0x18) & 0x7f;
2119 dib0090_write_reg(state, 0x18, lo4 | state->captrim);
2138 dprintk("CAPTRIM=%d; ADC = %d (ADC) & %dmV\n", (u32) state->captrim, (u32) adc, (u32) (adc) * (u32) 1800 / (u32) 1024);
2140 if (state->rest == 0 || state->identity.in_soc) { /* Just for 8090P SOCS where auto captrim HW bug : TO CHECK IN ACI for SOCS !!! if 400 for 8090p SOC => tune issue !!! */
2154 dprintk("CAPTRIM=%d is closer to target (%d/%d)\n", (u32) state->captrim, (u32) adc, (u32) state->adc_diff);
2156 state->fcaptrim = state->captrim;
2159 state->captrim += step_sign * state->step;
2453 state->calibrate = CAPTRIM_CAL; /* captrim search now */
2456 else if (*tune_state == CT_TUNER_STEP_0) { /* Warning : because of captrim cal, if you change this step, change it also in _cal.c file because it is the step following captrim cal state machine */