From: Chris Pascoe Date: Mon, 19 Nov 2007 09:35:26 +0000 (-0300) Subject: V4L/DVB (6641): xc2028: correct tuner offset for 7MHz DTV X-Git-Tag: v2.6.25-rc1~1235^2~332 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a44f1c43dfa98e2eb763968890157bfaf9001add;p=linux-2.6 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index adef80e627..c921d6009a 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 */ , 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;