Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] disable frequency bending patch



Hi, heres a patch which adds a new module parameter allowing frequency bending 
to be disabled. I find this feature is not useful when you have a mixture of 
DVB-T and DVB-S cards in a machine (just breaks the DVB-T tuning process).

Index: linux/drivers/media/dvb/dvb-core/dvb_frontend.c
===================================================================
RCS file: /cvs/linuxtv/dvb-kernel/linux/drivers/media/dvb/dvb-core/dvb_frontend.c,v
retrieving revision 1.51
diff -u -p -r1.51 dvb_frontend.c
--- linux/drivers/media/dvb/dvb-core/dvb_frontend.c	2 Jun 2003 11:36:06 -0000	1.51
+++ linux/drivers/media/dvb/dvb-core/dvb_frontend.c	16 Jun 2003 12:09:32 -0000
@@ -40,6 +40,7 @@
 
 static int dvb_frontend_debug = 0;
 static int dvb_shutdown_timeout = 5;
+static int dvb_disable_bending = 0;
 
 #define dprintk if (dvb_frontend_debug) printk
 
@@ -312,8 +313,8 @@ int dvb_frontend_set_parameters (struct 
 		memcpy (&fe->parameters, param,
 			sizeof (struct dvb_frontend_parameters));
 	}
-
-	dvb_bend_frequency (fe, 0);
+        if (!dvb_disable_bending)
+	        dvb_bend_frequency (fe, 0);
 
 	dprintk ("%s: f == %i, drift == %i\n",
 		 __FUNCTION__, (int) param->frequency, (int) fe->lnb_drift);
@@ -1001,5 +1002,7 @@ int dvb_unregister_frontend (int (*ioctl
 
 MODULE_PARM(dvb_frontend_debug,"i");
 MODULE_PARM(dvb_shutdown_timeout,"i");
+MODULE_PARM(dvb_disable_bending,"i");
 MODULE_PARM_DESC(dvb_frontend_debug, "enable verbose debug messages");
 MODULE_PARM_DESC(dvb_shutdown_timeout, "wait <shutdown_timeout> seconds after close() before suspending hardware");
+MODULE_PARM_DESC(dvb_disable_bending, "disable frequency bending");

Home | Main Index | Thread Index