Searched refs:min_adc_diff (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/media/dvb-frontends/
H A Ddib0090.c168 s16 min_adc_diff; member in struct:dib0090_state
1709 state->min_adc_diff = 1023; dib0090_dc_offset_calibration()
1728 state->min_adc_diff = -1023; dib0090_dc_offset_calibration()
1732 dprintk("adc_diff = %d, min_adc_diff = %d current_step = %d", state->adc_diff, state->min_adc_diff, state->step); dib0090_dc_offset_calibration()
1742 /* Look for a change of Sign in the Adc_diff.min_adc_diff is used to STORE the setp N-1 */ dib0090_dc_offset_calibration()
1743 if ((state->adc_diff & 0x8000) == (state->min_adc_diff & 0x8000) && steps(state->step) < 15) { dib0090_dc_offset_calibration()
1746 state->min_adc_diff = state->adc_diff; dib0090_dc_offset_calibration()
1750 if (ABS(state->adc_diff) > ABS(state->min_adc_diff)) { dib0090_dc_offset_calibration()
1751 dprintk("Since adc_diff N = %d > adc_diff step N-1 = %d, Come back one step", state->adc_diff, state->min_adc_diff); dib0090_dc_offset_calibration()

Completed in 46 milliseconds