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: imx319: 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
bdf24018 f19ba70f

+4
+4
drivers/media/i2c/imx319.c
··· 2328 2328 2329 2329 imx319->hflip = v4l2_ctrl_new_std(ctrl_hdlr, &imx319_ctrl_ops, 2330 2330 V4L2_CID_HFLIP, 0, 1, 1, 0); 2331 + if (imx319->hflip) 2332 + imx319->hflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; 2331 2333 imx319->vflip = v4l2_ctrl_new_std(ctrl_hdlr, &imx319_ctrl_ops, 2332 2334 V4L2_CID_VFLIP, 0, 1, 1, 0); 2335 + if (imx319->vflip) 2336 + imx319->vflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; 2333 2337 2334 2338 v4l2_ctrl_new_std(ctrl_hdlr, &imx319_ctrl_ops, V4L2_CID_ANALOGUE_GAIN, 2335 2339 IMX319_ANA_GAIN_MIN, IMX319_ANA_GAIN_MAX,