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: imx208: 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
f19ba70f 66274280

+4
+4
drivers/media/i2c/imx208.c
··· 937 937 938 938 imx208->hflip = v4l2_ctrl_new_std(ctrl_hdlr, &imx208_ctrl_ops, 939 939 V4L2_CID_HFLIP, 0, 1, 1, 0); 940 + if (imx208->hflip) 941 + imx208->hflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; 940 942 imx208->vflip = v4l2_ctrl_new_std(ctrl_hdlr, &imx208_ctrl_ops, 941 943 V4L2_CID_VFLIP, 0, 1, 1, 0); 944 + if (imx208->vflip) 945 + imx208->vflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; 942 946 943 947 v4l2_ctrl_new_std(ctrl_hdlr, &imx208_ctrl_ops, V4L2_CID_ANALOGUE_GAIN, 944 948 IMX208_ANA_GAIN_MIN, IMX208_ANA_GAIN_MAX,