[media] gspca_stv06xx: Disable flip controls for vv6410 sensor
authorErik Andrén <erik.andren@gmail.com>
Mon, 10 Dec 2012 19:35:19 +0000 (16:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 15:38:09 +0000 (13:38 -0200)
Disable the hardware VFLIP and HFLIP controls for now as we lack a
mechanism to adjust the frame offset, thus rending a bayerimage not
compliant with the announced format.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c

index cbb153180d59062523b43f6cbc07d6fffa96dbd8..e95fa8997d22c33e2318b5946ffbe72723346f1a 100644 (file)
@@ -98,11 +98,14 @@ static int vv6410_init_controls(struct sd *sd)
 {
        struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler;
 
-       v4l2_ctrl_handler_init(hdl, 4);
-       v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops,
-                       V4L2_CID_HFLIP, 0, 1, 1, 0);
-       v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops,
-                       V4L2_CID_VFLIP, 0, 1, 1, 0);
+       v4l2_ctrl_handler_init(hdl, 2);
+       /* Disable the hardware VFLIP and HFLIP as we currently lack a
+          mechanism to adjust the image offset in such a way that
+          we don't need to renegotiate the announced format */
+       /* v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops, */
+       /*              V4L2_CID_HFLIP, 0, 1, 1, 0); */
+       /* v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops, */
+       /*              V4L2_CID_VFLIP, 0, 1, 1, 0); */
        v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops,
                        V4L2_CID_EXPOSURE, 0, 32768, 1, 20000);
        v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops,