From 5d0d0ad2503f470d72fbeb6c7169c32a1e120463 Mon Sep 17 00:00:00 2001 From: Andrew de Quincy Date: Fri, 27 Feb 2004 03:32:53 +0000 Subject: Reduced maxdrift for QPSK by half, as it was drifting across onto other channels. --- linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 3 ++- linux/drivers/media/dvb/dvb-core/dvb_frontend.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index aab5d41bc..39c167812 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -369,7 +369,8 @@ static int dvb_frontend_autotune(struct dvb_frontend_data *fe) switch(fe->info->type) { case FE_QPSK: stepsize = fe->parameters.u.qpsk.symbol_rate / 16000; - maxdrift = fe->parameters.u.qpsk.symbol_rate / 1000; + maxdrift = fe->parameters.u.qpsk.symbol_rate / 2000; + if (maxdrift < 5000) maxdrift = 5000; break; case FE_QAM: diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.h b/linux/drivers/media/dvb/dvb-core/dvb_frontend.h index 350b1ea2c..4ab2f6b0c 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.h +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.h @@ -64,7 +64,7 @@ struct dvb_frontend { #define FE_SLEEP _IO('v', 80) #define FE_INIT _IO('v', 81) #define FE_RESET _IO('v', 82) -#define FE_GETMINDELAY _IO('v', 83) +#define FE_GETMINDELAY _IOW('v', 83, struct dvb_frontend_parameters) extern int -- cgit v1.2.3