diff options
author | Patrick Boettcher <devnull@localhost> | 2005-03-04 14:17:20 +0000 |
---|---|---|
committer | Patrick Boettcher <devnull@localhost> | 2005-03-04 14:17:20 +0000 |
commit | f6775230fe74324de7bc06daefd32e936430de99 (patch) | |
tree | 946972e3be8cc98b7438483de4db7be4a1acfe28 /linux/drivers | |
parent | b0298e1a15ef6e0e1c24a7eab6a920dd983a77df (diff) | |
download | mediapointer-dvb-s2-f6775230fe74324de7bc06daefd32e936430de99.tar.gz mediapointer-dvb-s2-f6775230fe74324de7bc06daefd32e936430de99.tar.bz2 |
- fixed pll frequency calculation for channels > 700 MHz.
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c index 4201030d8..5b80507d1 100644 --- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c +++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c @@ -278,10 +278,10 @@ static int thomson_cable_eu_pll_set(struct dvb_frontend_parameters *fep, u8 pllb static int panasonic_cofdm_env57h1xd5_pll_set(struct dvb_frontend_parameters *fep, u8 pllbuf[4]) { - u32 freq = fep->frequency; - u32 tfreq = ((freq + 36125000)*6 + 500000) / 1000000; + u32 freq_khz = fep->frequency / 1000; + u32 tfreq = ((freq_khz + 36125)*6 + 500) / 1000; u8 TA, T210, R210, ctrl1, cp210, p4321; - if (freq > 858000000) { + if (freq_khz > 858000) { err("frequency cannot be larger than 858 MHz."); return -EINVAL; } @@ -293,17 +293,17 @@ static int panasonic_cofdm_env57h1xd5_pll_set(struct dvb_frontend_parameters *fe ctrl1 = (1 << 7) | (TA << 6) | (T210 << 3) | R210; // ******** CHARGE PUMP CONFIG vs RF FREQUENCIES ***************** - if (freq < 470000000) + if (freq_khz < 470000) cp210 = 2; // VHF Low and High band ch E12 to E4 to E12 - else if (freq < 526000000) + else if (freq_khz < 526000) cp210 = 4; // UHF band Ch E21 to E27 else // if (freq < 862000000) cp210 = 5; // UHF band ch E28 to E69 //********************* BW select ******************************* - if (freq < 153000000) + if (freq_khz < 153000) p4321 = 1; // BW selected for VHF low - else if (freq < 470000000) + else if (freq_khz < 470000) p4321 = 2; // BW selected for VHF high E5 to E12 else // if (freq < 862000000) p4321 = 4; // BW selection for UHF E21 to E69 |