Skip to content

Commit

Permalink
[media] gspca_stv06xx: Disable flip controls for vv6410 sensor
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Erik Andrén authored and Mauro Carvalho Chehab committed Dec 21, 2012
1 parent e52ec68 commit d83fcb7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d83fcb7

Please sign in to comment.