Lines Matching refs:gain
44 #define REG_BLUE 0x01 /* blue gain */
45 #define REG_RED 0x02 /* red gain */
83 #define COM8_AGC 0x04 /* Auto gain enable */
86 #define REG_COM9 0x14 /* Control 9 - gain ceiling */
135 #define COM16_AWBGAIN 0x08 /* AWB gain enable */
157 #define REG_GFIX 0x69 /* Fix gain control */
225 /* gain cluster */
227 struct v4l2_ctrl *gain;
322 { REG_COM9, 0x18 }, /* 4x gain + magic rsvd bit */
416 { REG_COM9, 0x48 }, /* 32x gain ceiling; 0x8 is reserved bit */
432 { REG_COM9, 0x38 }, /* 16x gain ceiling; 0x8 is reserved bit */
448 { REG_COM9, 0x38 }, /* 16x gain ceiling; 0x8 is reserved bit */
1473 unsigned char gain;
1475 ret = ov7670_read(sd, REG_GAIN, &gain);
1478 *value = gain;
1586 return ov7670_g_gain(sd, &info->gain->val);
1609 /* Only set manual gain if auto gain is not explicitly
1612 /* ov7670_s_gain turns off auto gain */
1613 return ov7670_s_gain(sd, info->gain->val);
1952 info->gain = v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops,
1972 * We have checked empirically that hw allows to read back the gain
1973 * value chosen by auto gain but that's not the case for auto exposure.