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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Sep 2018 19:32:45 +0000 (15:32 -0400)
commita8f438c684eaa4cbe6c98828eb996d5ec53e24fb
tree99259f826d7ace3327a96f1665d1642e589e797b
parentc2c3f42df4dd9bb231d756bacb0c897f662c6d3c
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>
drivers/media/i2c/ov5640.c