]> git.baikalelectronics.ru Git - kernel.git/commit
[media] soc-camera: mt9m111: Fix auto-exposure control
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Tue, 26 Feb 2013 18:32:49 +0000 (15:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Mar 2013 17:18:38 +0000 (14:18 -0300)
commit023c70cf3ebbeb1f4a540e0eaedf473831770cd7
treea7d0cc76c88ed41a78d4c043c9e2687e2fac1123
parent1b41004a2b7b47c8375908caccdc65f4efeb27dd
[media] soc-camera: mt9m111: Fix auto-exposure control

Commit 15695b19bee8f0910e621970c6ab0734e72f3b03 changed V4L2_CID_EXPOSURE_AUTO
from boolean to enum, and commit b6fc48237fc0fe3c1d662b44d1d379e617753abc
changed the creation of this control into a menu for the mt9m111. However,
mt9m111_set_autoexposure() is still interpreting the value set for this control
as a boolean, which also conflicts with the default value of this control set to
V4L2_EXPOSURE_AUTO (0).
This patch makes mt9m111_set_autoexposure() interpret the value set for
V4L2_CID_EXPOSURE_AUTO as defined by enum v4l2_exposure_auto_type.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/soc_camera/mt9m111.c