OSDN Git Service

media: ov5640: Don't force the auto exposure state at start time
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 16 Apr 2018 12:36:52 +0000 (08:36 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 17 May 2018 10:22:08 +0000 (06:22 -0400)
commitbf4a4b518c205bba1da25df5902974a402bbfb34
tree80fc012d4f1d226f89e7f98517f045860a9bb4df
parent1068fecacf4304ff5c41139c4a84a19bdb08ef90
media: ov5640: Don't force the auto exposure state at start time

The sensor needs to have the auto exposure stopped while changing mode.
However, when the new mode is set, the driver will force the auto exposure
on, disregarding whether the control has been changed or not.

Bypass the controls code entirely to do that, and only use the control
value cached when restoring the auto exposure mode.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
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