[media] r820t: add support for R828D
authorAntti Palosaari <crope@iki.fi>
Wed, 30 Oct 2013 03:17:02 +0000 (00:17 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 31 Oct 2013 08:09:13 +0000 (06:09 -0200)
commit7315b93338e87e03f71709dc1c1fcffb5272d23f
treecf20bf738736a14839287a6695a7b1831c88e05e
parent4f7c09b9dbf972331822bd31473df954554a9d6b
[media] r820t: add support for R828D

Small changes in order to support tuner version R828D @ 16 MHz clock.
There was 'vco_fine_tune' check, which seems to adjust synthesizer
output divider (mixer dix / LO div / Rout) by one. R828D seems to
return vco_fine_tune=1 every time and that condition causes tuning
fail as output divider was increased by one.
Resolve problem by skipping whole condition in case of R828D tuner.
Just to mention, other tuner, R820T, seems to return 2 here.
Synthesizer maximum frequency check was hard coded to check synthesizer N
and thus worked correctly only for clock frequencies around 30 MHz.
As whole test is quite useless in any case, I removed it totally.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/tuners/r820t.c