Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Laurent Pinchart and committed by
Sakari Ailus
3dd10515 b4ab57b0

+2 -2
+2 -2
drivers/media/i2c/imx290.c
··· 524 524 return 0; 525 525 526 526 switch (ctrl->id) { 527 - case V4L2_CID_GAIN: 527 + case V4L2_CID_ANALOGUE_GAIN: 528 528 ret = imx290_write(imx290, IMX290_GAIN, ctrl->val, NULL); 529 529 break; 530 530 ··· 1015 1015 * gain control should be adjusted accordingly. 1016 1016 */ 1017 1017 v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops, 1018 - V4L2_CID_GAIN, 0, 100, 1, 0); 1018 + V4L2_CID_ANALOGUE_GAIN, 0, 100, 1, 0); 1019 1019 1020 1020 v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops, 1021 1021 V4L2_CID_EXPOSURE, 1, IMX290_VMAX_DEFAULT - 2, 1,