Skip to content

Commit 6627428

Browse files
6by9mchehab
authored andcommitted
media: i2c: ov2680: 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]> Acked-by: Rui Miguel Silva <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent f33b56d commit 6627428

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/media/i2c/ov2680.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,8 @@ static int ov2680_v4l2_register(struct ov2680_dev *sensor)
967967

968968
ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE;
969969
ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE;
970+
ctrls->vflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT;
971+
ctrls->hflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT;
970972

971973
v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true);
972974
v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true);

0 commit comments

Comments
 (0)