Lines Matching refs:gain
45 #define REG_BLUE 0x01 /* blue gain */
46 #define REG_RED 0x02 /* red gain */
84 #define COM8_AGC 0x04 /* Auto gain enable */
87 #define REG_COM9 0x14 /* Control 9 - gain ceiling */
136 #define COM16_AWBGAIN 0x08 /* AWB gain enable */
158 #define REG_GFIX 0x69 /* Fix gain control */
226 /* gain cluster */
228 struct v4l2_ctrl *gain;
323 { REG_COM9, 0x18 }, /* 4x gain + magic rsvd bit */
417 { REG_COM9, 0x48 }, /* 32x gain ceiling; 0x8 is reserved bit */
433 { REG_COM9, 0x38 }, /* 16x gain ceiling; 0x8 is reserved bit */
449 { REG_COM9, 0x38 }, /* 16x gain ceiling; 0x8 is reserved bit */
1460 unsigned char gain;
1462 ret = ov7670_read(sd, REG_GAIN, &gain);
1463 *value = gain;
1570 return ov7670_g_gain(sd, &info->gain->val);
1593 /* Only set manual gain if auto gain is not explicitly
1596 /* ov7670_s_gain turns off auto gain */
1597 return ov7670_s_gain(sd, info->gain->val);
1941 info->gain = v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops,
1961 * We have checked empirically that hw allows to read back the gain
1962 * value chosen by auto gain but that's not the case for auto exposure.