Commit 5264edf1 authored by Dave Stevenson's avatar Dave Stevenson Committed by sanglipeng
Browse files

media: i2c: ov2680: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips

stable inclusion
from stable-v5.10.195
commit e1552a0b990ba0a700c827a1c8c66ad5769618b4
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I95JOC

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e1552a0b990ba0a700c827a1c8c66ad5769618b4



--------------------------------

[ Upstream commit 66274280 ]

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: default avatarDave Stevenson <dave.stevenson@raspberrypi.com>
Acked-by: default avatarRui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
Stable-dep-of: 7b5a42e6 ("media: ov2680: Remove auto-gain and auto-exposure controls")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 1b065c18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment