Searched refs:cur_gain (Results 1 – 3 of 3) sorted by relevance
857 s32 cur_gain = v4l2_ctrl_g_ctrl(sd->gain); in do_autogain() local863 if (cur_gain == sd->gain->maximum) in do_autogain()865 cur_gain++; in do_autogain()866 v4l2_ctrl_s_ctrl(sd->gain, cur_gain); in do_autogain()869 if (cur_gain == sd->gain->minimum) in do_autogain()871 cur_gain--; in do_autogain()872 v4l2_ctrl_s_ctrl(sd->gain, cur_gain); in do_autogain()
2146 s32 cur_gain = v4l2_ctrl_g_ctrl(sd->gain); in do_autogain() local2148 if (avg_lum < MIN_AVG_LUM && cur_gain < sd->gain->maximum) in do_autogain()2149 v4l2_ctrl_s_ctrl(sd->gain, cur_gain + 1); in do_autogain()2150 if (avg_lum > MAX_AVG_LUM && cur_gain > sd->gain->minimum) in do_autogain()2151 v4l2_ctrl_s_ctrl(sd->gain, cur_gain - 1); in do_autogain()
56 int cur_gain; member410 if (data->cur_gain < gain_idx) in veml6030_set_als_gain()411 data->cur_resolution <<= gain_idx - data->cur_gain; in veml6030_set_als_gain()412 else if (data->cur_gain > gain_idx) in veml6030_set_als_gain()413 data->cur_resolution >>= data->cur_gain - gain_idx; in veml6030_set_als_gain()415 data->cur_gain = gain_idx; in veml6030_set_als_gain()782 data->cur_gain = 3; in veml6030_hw_init()