提交 d83fcb79 编写于 作者: E Erik Andrén 提交者: Mauro Carvalho Chehab

[media] gspca_stv06xx: Disable flip controls for vv6410 sensor

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: NErik Andrén <erik.andren@gmail.com>
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 e52ec680
...@@ -98,11 +98,14 @@ static int vv6410_init_controls(struct sd *sd) ...@@ -98,11 +98,14 @@ static int vv6410_init_controls(struct sd *sd)
{ {
struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler;
v4l2_ctrl_handler_init(hdl, 4); v4l2_ctrl_handler_init(hdl, 2);
v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops, /* Disable the hardware VFLIP and HFLIP as we currently lack a
V4L2_CID_HFLIP, 0, 1, 1, 0); mechanism to adjust the image offset in such a way that
v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops, we don't need to renegotiate the announced format */
V4L2_CID_VFLIP, 0, 1, 1, 0); /* 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_ctrl_new_std(hdl, &vv6410_ctrl_ops,
V4L2_CID_EXPOSURE, 0, 32768, 1, 20000); V4L2_CID_EXPOSURE, 0, 32768, 1, 20000);
v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops, v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册