From c80e4db976cc9af44f7029e9c55b878bda8d88fa Mon Sep 17 00:00:00 2001 From: Chris Pascoe Date: Mon, 19 Nov 2007 19:35:26 +1000 Subject: xc2028: correct tuner offset for 7MHz DTV From: Chris Pascoe 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 --- linux/drivers/media/video/tuner-xc2028.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'linux') diff --git a/linux/drivers/media/video/tuner-xc2028.c b/linux/drivers/media/video/tuner-xc2028.c index 2a17d750a..8105d1975 100644 --- a/linux/drivers/media/video/tuner-xc2028.c +++ b/linux/drivers/media/video/tuner-xc2028.c @@ -781,8 +781,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; -- cgit v1.2.3