diff options
author | Andrew de Quincy <devnull@localhost> | 2004-02-27 03:34:04 +0000 |
---|---|---|
committer | Andrew de Quincy <devnull@localhost> | 2004-02-27 03:34:04 +0000 |
commit | da53c1774e41f5c9afa8201743f8eae813d9c873 (patch) | |
tree | d579a20dccfd295b0b2b97df72220c3b93308e06 /linux/drivers/media/dvb/frontends/stv0299.c | |
parent | 5d0d0ad2503f470d72fbeb6c7169c32a1e120463 (diff) | |
download | mediapointer-dvb-s2-da53c1774e41f5c9afa8201743f8eae813d9c873.tar.gz mediapointer-dvb-s2-da53c1774e41f5c9afa8201743f8eae813d9c873.tar.bz2 |
Reduced drift so channels cannot drift across to nearby ones
Diffstat (limited to 'linux/drivers/media/dvb/frontends/stv0299.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/stv0299.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/stv0299.c b/linux/drivers/media/dvb/frontends/stv0299.c index 8c9154948..574f5f519 100644 --- a/linux/drivers/media/dvb/frontends/stv0299.c +++ b/linux/drivers/media/dvb/frontends/stv0299.c @@ -1086,8 +1086,9 @@ static int uni0299_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg) if (state->tuner_type == PHILIPS_SU1278_TSA_TT) { /* check if we should do a finetune */ int frequency_delta = p->frequency - state->tuner_frequency; - int minmax = p->u.qpsk.symbol_rate / 1000; - + int minmax = p->u.qpsk.symbol_rate / 2000; + if (minmax < 5000) minmax = 5000; + if ((frequency_delta > -minmax) && (frequency_delta < minmax) && (frequency_delta != 0) && (state->fec_inner == p->u.qpsk.fec_inner) && (state->symbol_rate == p->u.qpsk.symbol_rate)) { |