media: i2c: imx290: Replace GAIN control with ANALOGUE_GAIN

The IMX290 gain register controls the analogue gain. Replace the
V4L2_CID_GAIN control with V4L2_CID_ANALOGUE_GAIN.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
Laurent Pinchart
2022-10-16 09:15:23 +03:00
committed by Sakari Ailus
parent b4ab57b07c
commit 3dd10515a1

View File

@@ -524,7 +524,7 @@ static int imx290_set_ctrl(struct v4l2_ctrl *ctrl)
return 0; return 0;
switch (ctrl->id) { switch (ctrl->id) {
case V4L2_CID_GAIN: case V4L2_CID_ANALOGUE_GAIN:
ret = imx290_write(imx290, IMX290_GAIN, ctrl->val, NULL); ret = imx290_write(imx290, IMX290_GAIN, ctrl->val, NULL);
break; break;
@@ -1015,7 +1015,7 @@ static int imx290_ctrl_init(struct imx290 *imx290)
* gain control should be adjusted accordingly. * gain control should be adjusted accordingly.
*/ */
v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops, v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops,
V4L2_CID_GAIN, 0, 100, 1, 0); V4L2_CID_ANALOGUE_GAIN, 0, 100, 1, 0);
v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops, v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops,
V4L2_CID_EXPOSURE, 1, IMX290_VMAX_DEFAULT - 2, 1, V4L2_CID_EXPOSURE, 1, IMX290_VMAX_DEFAULT - 2, 1,