[media] Default bt878 contrast value
authorAlan McIvor <alan.mcivor@reveal.co.nz>
Mon, 2 Apr 2012 00:11:08 +0000 (21:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 11 Apr 2012 10:55:35 +0000 (07:55 -0300)
commit961e668b3447a73c040181def293cfa875c74738
tree1c5fa5e25eedf317dc8afd13e42b2c7ac101c862
parent9d454d48ebcd9938ac60a245fa545d9db1035f1a
[media] Default bt878 contrast value

The default_value for the Bt878 V4L2_CID_CONTRAST control is currently
set to 32768. Internally this gets translated to an analog input
circuit gain of 1.19. However, the default gain should be 1.0. This
patch alters the default value to 27648 which corresponds to a gain of
1.0. It also alters the probe routine so that the correct value is
written on board initialisation.

[mchehab@redhat.com: behavior confirmed via Fusion 878a datasheet]
Signed-off-by: Alan McIvor <alan.mcivor@reveal.co.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/bt8xx/bttv-driver.c