Skip to content

Commit

Permalink
media: i2c: imx290: Replace GAIN control with ANALOGUE_GAIN
Browse files Browse the repository at this point in the history
The IMX290 gain register controls the analogue gain. Replace the
V4L2_CID_GAIN control with V4L2_CID_ANALOGUE_GAIN.

Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Alexander Stein <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
  • Loading branch information
pinchartl authored and Sakari Ailus committed Oct 27, 2022
1 parent b4ab57b commit 3dd1051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/i2c/imx290.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ static int imx290_set_ctrl(struct v4l2_ctrl *ctrl)
return 0;

switch (ctrl->id) {
case V4L2_CID_GAIN:
case V4L2_CID_ANALOGUE_GAIN:
ret = imx290_write(imx290, IMX290_GAIN, ctrl->val, NULL);
break;

Expand Down Expand Up @@ -1015,7 +1015,7 @@ static int imx290_ctrl_init(struct imx290 *imx290)
* gain control should be adjusted accordingly.
*/
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_CID_EXPOSURE, 1, IMX290_VMAX_DEFAULT - 2, 1,
Expand Down

0 comments on commit 3dd1051

Please sign in to comment.