diff options
author | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-11-19 19:35:26 +1000 |
---|---|---|
committer | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-11-19 19:35:26 +1000 |
commit | c80e4db976cc9af44f7029e9c55b878bda8d88fa (patch) | |
tree | e7a56862536ee84ec43114f387dce2f210b01656 /linux/drivers/media/video/tuner-xc2028.c | |
parent | 1be9e9b31e3d8e17e7f127742bed3b1904cc9d1b (diff) | |
download | mediapointer-dvb-s2-c80e4db976cc9af44f7029e9c55b878bda8d88fa.tar.gz mediapointer-dvb-s2-c80e4db976cc9af44f7029e9c55b878bda8d88fa.tar.bz2 |
xc2028: correct tuner offset for 7MHz DTV
From: Chris Pascoe <c.pascoe@itee.uq.edu.au>
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 'linux/drivers/media/video/tuner-xc2028.c')
-rw-r--r-- | linux/drivers/media/video/tuner-xc2028.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |