V4L/DVB: gspca - ov534: Fix autogain control, enable it by default
authorMax Thrun <bear24rw@gmail.com>
Sat, 27 Feb 2010 20:20:20 +0000 (17:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:46:54 +0000 (00:46 -0300)
commit8b7fbda484176b46a7760fd474d605ca5152c86d
tree8a5cdb950bfd79ea261b20a087af00b5afc33689
parent0c41acf158b61577dd8e50ba00f3cadabdc3c756
V4L/DVB: gspca - ov534: Fix autogain control, enable it by default

* Use 'agc' instead of 'autogain' in the code so to align the naming
    as in AEC/AWB.
  * Tweak brightness and contrast default values.
  * Fix setting/resetting registers values for AGC.
  * Set actual gain back when disabling AGC.
  * Skip setting GAIN register when AGC is enabled.
  * Enable AGC by default.

Note that as Auto Gain Control is now enabled by default, if you are
using the driver for visual computing applications you might need to
disable it explicitly in your software.

Signed-off-by: Max Thrun <bear24rw@gmail.com>
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/ov534.c