]> git.baikalelectronics.ru Git - kernel.git/commit
media: ov7740: enable to get exposure control in autoexposure mode
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 18 Mar 2019 15:25:43 +0000 (11:25 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 29 Mar 2019 14:44:47 +0000 (10:44 -0400)
commitaa0cb2e2aa4f0ac80de123e09f017aad4b87be4c
tree955083dbc92230c31d7efeee51804d3721d41467
parent8b8ab04a45b2e924881248ce8be2ec84c24c1f25
media: ov7740: enable to get exposure control in autoexposure mode

The exposure control is clustered with the autoexposure control and
flagged as volatile, but the g_volatile_ctrl() doesn't handle
V4L2_CID_EXPOSURE_AUTO.  So, the value of the exposure control can't be
read in autoexposure mode.

This enables to get the exposure control in autoexposure mode by making
ov7740_get_volatile_ctrl() deal with V4L2_CID_EXPOSURE_AUTO.

This also sets the exposure control as volatile by specifying the
argument to v4l2_ctrl_auto_cluster() instead of manually flagging it.

Cc: Wenyou Yang <wenyou.yang@microchip.com>
Cc: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov7740.c