aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorChris Pascoe <c.pascoe@itee.uq.edu.au>2007-11-19 04:35:26 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:02:27 -0500
commita44f1c43dfa98e2eb763968890157bfaf9001add (patch)
tree840cd2f64226d1c225596e747317be5295990d20 /drivers/media
parentddf1c5f1d78c1ce30a7e6b2447670fc0e103bb62 (diff)
V4L/DVB (6641): xc2028: correct tuner offset for 7MHz DTV
7MHz bandwidth DVB-T needs an adjusted offset at the PLL to ensure the IF output is correctly centered. Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/tuner-xc2028.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c
index adef80e627b8..c921d6009a8b 100644
--- a/drivers/media/video/tuner-xc2028.c
+++ b/drivers/media/video/tuner-xc2028.c
@@ -764,8 +764,11 @@ static int generic_set_tv_freq(struct dvb_frontend *fe, u32 freq /* in Hz */ ,
764 if (check_firmware(fe, new_mode, std, bandwidth) < 0) 764 if (check_firmware(fe, new_mode, std, bandwidth) < 0)
765 goto ret; 765 goto ret;
766 766
767 if (new_mode == T_DIGITAL_TV) 767 if (new_mode == T_DIGITAL_TV) {
768 offset = 2750000; 768 offset = 2750000;
769 if (priv->bandwidth == BANDWIDTH_7_MHZ)
770 offset -= 500000;
771 }
769 772
770 div = (freq - offset + DIV / 2) / DIV; 773 div = (freq - offset + DIV / 2) / DIV;
771 774