]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
media: ov5640: fix auto controls values when switching to manual mode
authorHugues Fruchet <hugues.fruchet@st.com>
Tue, 11 Sep 2018 13:48:20 +0000 (09:48 -0400)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 27 Sep 2018 06:20:46 +0000 (08:20 +0200)
commit2f4f57ecd4b2b30d8b0b1336cf49f4761993c9c9
tree23ef7eeb000ecbce588f4bfe2dc0730020b4e886
parent5a0893c2fe7a7a57f94915a59278dd884e0e4e07
media: ov5640: fix auto controls values when switching to manual mode

When switching from auto to manual mode, V4L2 core is calling
g_volatile_ctrl() in manual mode in order to get the manual initial value.
Remove the manual mode check/return to not break this behaviour.

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Tested-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sam Bobrowicz <sam@elite-embedded.com>
drivers/media/i2c/ov5640.c