[media] mt9v011: Added exposure for mt9v011
authorJohannes Obermaier <johannes.obermaier@gmail.com>
Thu, 2 Jun 2011 15:43:14 +0000 (12:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:52:25 +0000 (17:52 -0300)
commit590929f32adc3aaa702c287b624a0d0382730088
tree6d6e194c9d52ede5cd21170298f81a0f05b30282
parent1048af2f810b3d08210c600ca3c8e84877edbbc7
[media] mt9v011: Added exposure for mt9v011

There are problems when you use this camera/sensor in a very bright room
or outside. The image is completely white, because it is overexposed.
The driver uses a default value which is not suitable for all
environments.

This patch makes it possible to adjust the exposure time by youself. I
found out by logging the i2c-data, that the windows driver for this
sensor is doing this, too. I tested the camera on a sunny day and after
adjusting the exposure time, I was able to see a very good image.

Tested-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Johannes Obermaier <johannes.obermaier@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mt9v011.c