]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mt9v032: Correct the logic for the auto-exposure setting
authorKartik Mohta <kartikmohta@gmail.com>
Wed, 2 May 2012 22:19:08 +0000 (19:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 16:39:02 +0000 (13:39 -0300)
commit26af1f40fd2e397b7dc348eafe649cd523a3ea04
tree0f67d5ca8189ae4ae12da0af42c9ca2166f6379b
parentaf2cc975fc0e43d003b177ddbe9c33cf2651cb56
[media] mt9v032: Correct the logic for the auto-exposure setting

The driver uses the ctrl value passed in as a bool to determine whether
to enable auto-exposure, but the auto-exposure setting is defined as an
enum where AUTO has a value of 0 and MANUAL has a value of 1. This leads
to a reversed logic where if you send in AUTO, it actually sets manual
exposure and vice-versa.

Signed-off-by: Kartik Mohta <kartikmohta@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mt9v032.c