mbox series

[0/5] Ensure sensor drivers set V4L2_CTRL_FLAG_MODIFY_LAYOUT for flips

Message ID 20221202152727.1010207-1-dave.stevenson@raspberrypi.com (mailing list archive)
Headers show
Series Ensure sensor drivers set V4L2_CTRL_FLAG_MODIFY_LAYOUT for flips | expand

Message

Dave Stevenson Dec. 2, 2022, 3:27 p.m. UTC
Hi.

I was doing a basic sweep of drivers and noted that these 5 drivers change the
Bayer order based on HFLIP and VFLIP. However they don't set the
V4L2_CTRL_FLAG_MODIFY_LAYOUT flag on the controls, so userspace has no notion
that it needs to check for a changed format.

Add the flag to all the controls.

  Dave

Dave Stevenson (5):
  media: i2c: ov2680: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips
  media: i2c: imx208: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips
  media: i2c: imx319: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips
  media: i2c: imx355: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips
  media: i2c: ov08d10: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips

 drivers/media/i2c/imx208.c  | 4 ++++
 drivers/media/i2c/imx319.c  | 4 ++++
 drivers/media/i2c/imx355.c  | 4 ++++
 drivers/media/i2c/ov08d10.c | 5 +++++
 drivers/media/i2c/ov2680.c  | 4 ++++
 5 files changed, 21 insertions(+)