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

media: i2c: imx355: 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
1dc33888 bdf24018

+4
+4
drivers/media/i2c/imx355.c
··· 1617 1617 1618 1618 imx355->hflip = v4l2_ctrl_new_std(ctrl_hdlr, &imx355_ctrl_ops, 1619 1619 V4L2_CID_HFLIP, 0, 1, 1, 0); 1620 + if (imx355->hflip) 1621 + imx355->hflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; 1620 1622 imx355->vflip = v4l2_ctrl_new_std(ctrl_hdlr, &imx355_ctrl_ops, 1621 1623 V4L2_CID_VFLIP, 0, 1, 1, 0); 1624 + if (imx355->vflip) 1625 + imx355->vflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; 1622 1626 1623 1627 v4l2_ctrl_new_std(ctrl_hdlr, &imx355_ctrl_ops, V4L2_CID_ANALOGUE_GAIN, 1624 1628 IMX355_ANA_GAIN_MIN, IMX355_ANA_GAIN_MAX,