[media] tda18212: round IF frequency to close hardware value
authorAntti Palosaari <crope@iki.fi>
Sun, 13 Nov 2011 14:22:58 +0000 (11:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Nov 2011 19:53:35 +0000 (17:53 -0200)
commit8cffcc78996c25a04423e294faa1bb5bba3e420e
tree88a698fe6163c8ab6539ffffdb894d78cb536cce
parent835bf82ce4b64e280ca6c4da67c819a1065693bc
[media] tda18212: round IF frequency to close hardware value

Chip configures IF frequency resolution of 50 kHz. Round it nearest.
Off-by 50 kHz is almost nothing in real life...

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda18212.c