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

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/dvb/frontends/
H A Ddib0090.c116 s16 current_gain; /* keeps the currently programmed gain */ member in struct:dib0090_state
466 /* use gain as a temporary variable and correct current_gain */
468 if (gain_delta >= ((s16) gain - state->current_gain)) /* overflow */
469 state->current_gain = gain;
471 state->current_gain += gain_delta;
472 /* cannot be less than 0 (only if gain_delta is less than 0 we can have current_gain < 0) */
473 if (state->current_gain < 0)
474 state->current_gain = 0;
477 gain = state->current_gain >> GAIN_ALPHA;
668 state->current_gain
[all...]

Completed in 101 milliseconds