Home
last modified time | relevance | path

Searched refs:cur_gain (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/media/usb/gspca/
Dsn9c2028.c857 s32 cur_gain = v4l2_ctrl_g_ctrl(sd->gain); in do_autogain() local
863 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()
Dsn9c20x.c2146 s32 cur_gain = v4l2_ctrl_g_ctrl(sd->gain); in do_autogain() local
2148 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()
/linux-6.1.9/drivers/iio/light/
Dveml6030.c56 int cur_gain; member
410 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()