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

media: i2c: ov08d10: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips

The driver changes the Bayer order based on the flips, but
does not define the control correctly with the
V4L2_CTRL_FLAG_MODIFY_LAYOUT flag.

Add the V4L2_CTRL_FLAG_MODIFY_LAYOUT flag.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Dave Stevenson and committed by
Mauro Carvalho Chehab
e70fefdc 1dc33888

+5
+5
drivers/media/i2c/ov08d10.c
··· 990 990 991 991 ov08d10->hflip = v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, 992 992 V4L2_CID_HFLIP, 0, 1, 1, 0); 993 + if (ov08d10->hflip) 994 + ov08d10->hflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; 993 995 ov08d10->vflip = v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, 994 996 V4L2_CID_VFLIP, 0, 1, 1, 0); 997 + if (ov08d10->vflip) 998 + ov08d10->vflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; 999 + 995 1000 if (ctrl_hdlr->error) 996 1001 return ctrl_hdlr->error; 997 1002