diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda1004x.c | 14 |
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; |