]> git.karo-electronics.de Git - linux-beck.git/commitdiff
V4L/DVB (6641): xc2028: correct tuner offset for 7MHz DTV
authorChris Pascoe <c.pascoe@itee.uq.edu.au>
Mon, 19 Nov 2007 09:35:26 +0000 (06:35 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:02:27 +0000 (19:02 -0200)
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>
drivers/media/video/tuner-xc2028.c

index adef80e627b8ede3c50bc572103e0248d971464f..c921d6009a8b68bc4d59d73d4ebbf95425ce3815 100644 (file)
@@ -764,8 +764,11 @@ static int generic_set_tv_freq(struct dvb_frontend *fe, u32 freq /* in Hz */ ,
        if (check_firmware(fe, new_mode, std, bandwidth) < 0)
                goto ret;
 
-       if (new_mode == T_DIGITAL_TV)
+       if (new_mode == T_DIGITAL_TV) {
                offset = 2750000;
+               if (priv->bandwidth == BANDWIDTH_7_MHZ)
+                       offset -= 500000;
+       }
 
        div = (freq - offset + DIV / 2) / DIV;