]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] V4L: ov9650: fix control clusters
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 19 Jan 2016 11:12:48 +0000 (09:12 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 10 Feb 2016 11:28:41 +0000 (09:28 -0200)
Auto-gain and auto-exposure clusters in the ov9650 driver have both a
size of 2, not 3 controls. Fix this.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/ov9650.c

index a0b3c9bde53d85531283982c9a526ea9395f4c19..be5a7fd4f0769bab27b4afe8733ef62e182e5cd7 100644 (file)
@@ -1046,8 +1046,8 @@ static int ov965x_initialize_controls(struct ov965x *ov965x)
        ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE;
 
        v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false);
-       v4l2_ctrl_auto_cluster(3, &ctrls->auto_gain, 0, true);
-       v4l2_ctrl_auto_cluster(3, &ctrls->auto_exp, 1, true);
+       v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true);
+       v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true);
        v4l2_ctrl_cluster(2, &ctrls->hflip);
 
        ov965x->sd.ctrl_handler = hdl;