]> git.baikalelectronics.ru Git - kernel.git/commit
[media] saa7115: Add register setup and config for gm7113c
authorJon Arne Jørgensen <jonarne@jonarne.no>
Fri, 10 May 2013 06:52:28 +0000 (03:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 21 May 2013 11:25:08 +0000 (08:25 -0300)
commitb25ac9c620f90b1b35411a7611fe1c99f8befde5
tree2d6849a2c0676c1b11f6b23aad4598389b34cc4b
parentd5296e497b25945e6b14515d857a9d939ebccde6
[media] saa7115: Add register setup and config for gm7113c

The gm7113c chip is similar to the original saa7113 chip, so I try to
re-use most of the saa7113 specific setup-/configuration registers.
According to the datasheet, the gm7113c chip has not implemented
any register-addresses after 0x1f, so I add a new entry to for the chip
to the saa711x_has_reg function.
The devices I've seen using this chip will fail to get stable video-sync
if these registers are not zeroed:
R_14_ANAL_ADC_COMPAT_CNTL
R_15_VGATE_START_FID_CHG
R_16_VGATE_STOP
R_17_MISC_VGATE_CONF_AND_MSB
The saa711x_set_v4lstd is updated to send a simpler configuration-table
to avoid setting these registers.

Signed-off-by: Jon Arne Jørgensen <jonarne@jonarne.no>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/saa7115.c