From da53c1774e41f5c9afa8201743f8eae813d9c873 Mon Sep 17 00:00:00 2001 From: Andrew de Quincy Date: Fri, 27 Feb 2004 03:34:04 +0000 Subject: Reduced drift so channels cannot drift across to nearby ones --- linux/drivers/media/dvb/frontends/stv0299.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/dvb/frontends/stv0299.c') 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)) { -- cgit v1.2.3