]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
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)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 27 Sep 2018 06:20:37 +0000 (08:20 +0200)
commit99ea9d943d5f5a9a21e46b6aeb7162690b2f0a6d
tree589083cfff5f4b3523673db1c1bfecb14b0fa840
parentfc384afaf01a2d3165a5f96786769dd9d623219c
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>
Signed-off-by: Sam Bobrowicz <sam@elite-embedded.com>
drivers/media/i2c/ov5640.c