Lines Matching refs:captrim
149 /* for the captrim/dc-offset search */
154 s8 captrim;
2093 /* prepare a complete captrim */
2095 state->step = state->captrim = state->fcaptrim = 64;
2100 /* do a minimal captrim even if the frequency has not changed */
2102 state->captrim = state->fcaptrim = dib0090_read_reg(state, 0x18) & 0x7f;
2117 dib0090_write_reg(state, 0x18, lo4 | state->captrim);
2136 dprintk("CAPTRIM=%d; ADC = %d (ADC) & %dmV\n", (u32) state->captrim, (u32) adc, (u32) (adc) * (u32) 1800 / (u32) 1024);
2138 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 !!! */
2152 dprintk("CAPTRIM=%d is closer to target (%d/%d)\n", (u32) state->captrim, (u32) adc, (u32) state->adc_diff);
2154 state->fcaptrim = state->captrim;
2157 state->captrim += step_sign * state->step;
2451 state->calibrate = CAPTRIM_CAL; /* captrim search now */
2454 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 */