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

Configure Feed

Select the types of activity you want to include in your feed.

media: i2c: ov2680: 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>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.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
66274280 f33b56d3

+2
+2
drivers/media/i2c/ov2680.c
··· 967 967 968 968 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; 969 969 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; 970 + ctrls->vflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; 971 + ctrls->hflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; 970 972 971 973 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true); 972 974 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true);