summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorAndrew de Quincy <devnull@localhost>2004-01-27 22:42:51 +0000
committerAndrew de Quincy <devnull@localhost>2004-01-27 22:42:51 +0000
commitd3fe8f0717db19bbee67abc86c0a542678e0c2ad (patch)
tree0f34a974366332c6a5a72fa9499f9c7a0827ed68 /linux/drivers/media/dvb
parentcbd55844dd668337f1e78daefb1eebadf9cd086e (diff)
downloadmediapointer-dvb-s2-d3fe8f0717db19bbee67abc86c0a542678e0c2ad.tar.gz
mediapointer-dvb-s2-d3fe8f0717db19bbee67abc86c0a542678e0c2ad.tar.bz2
Fixed frequency calculation.. realised its exactly the same as the
tda10045h one!
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/frontends/tda1004x.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda1004x.c b/linux/drivers/media/dvb/frontends/tda1004x.c
index c9d35b83d..2522b076a 100644
--- a/linux/drivers/media/dvb/frontends/tda1004x.c
+++ b/linux/drivers/media/dvb/frontends/tda1004x.c
@@ -773,7 +773,7 @@ static int tda1004x_set_frequency(struct dvb_i2c_bus *i2c,
case TUNER_TYPE_TD1316:
// determine charge pump
- tuner_frequency = fe_params->frequency + 36166666;
+ tuner_frequency = fe_params->frequency + 36130000;
if (tuner_frequency < 87000000) {
return -EINVAL;
} else if (tuner_frequency < 130000000) {
@@ -830,16 +830,8 @@ static int tda1004x_set_frequency(struct dvb_i2c_bus *i2c,
}
// calculate divisor
- switch(tda_state->fe_type) {
- case FE_TYPE_TDA10045H:
- tuner_frequency =
- (((fe_params->frequency / 1000) * 6) + 217280) / 1000;
- break;
-
- case FE_TYPE_TDA10046H:
- tuner_frequency = (83333 + 36166666 + fe_params->frequency) / 166666;
- break;
- }
+ tuner_frequency =
+ (((fe_params->frequency / 1000) * 6) + 217280) / 1000;
// setup tuner buffer
tuner_buf[0] = tuner_frequency >> 8;