Skip to content

Commit e70fefd

Browse files
6by9mchehab
authored andcommitted
media: i2c: ov08d10: 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 <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 1dc3388 commit e70fefd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/media/i2c/ov08d10.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,13 @@ static int ov08d10_init_controls(struct ov08d10 *ov08d10)
990990

991991
ov08d10->hflip = v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops,
992992
V4L2_CID_HFLIP, 0, 1, 1, 0);
993+
if (ov08d10->hflip)
994+
ov08d10->hflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT;
993995
ov08d10->vflip = v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops,
994996
V4L2_CID_VFLIP, 0, 1, 1, 0);
997+
if (ov08d10->vflip)
998+
ov08d10->vflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT;
999+
9951000
if (ctrl_hdlr->error)
9961001
return ctrl_hdlr->error;
9971002

0 commit comments

Comments
 (0)