[svn-commits] kpfleming: branch linux/kpfleming/modular_ec r4401 - /linux/team/kpfleming/mo...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jun 18 18:18:47 CDT 2008


Author: kpfleming
Date: Wed Jun 18 18:18:47 2008
New Revision: 4401

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4401
Log:
aggressive suppression is no longer a compile-time default, but instead a module parameter that can be set at load time and changed at run time

Modified:
    linux/team/kpfleming/modular_ec/drivers/dahdi/dahdi_echocan_kb1.c
    linux/team/kpfleming/modular_ec/drivers/dahdi/dahdi_echocan_mg2.c

Modified: linux/team/kpfleming/modular_ec/drivers/dahdi/dahdi_echocan_kb1.c
URL: http://svn.digium.com/view/dahdi/linux/team/kpfleming/modular_ec/drivers/dahdi/dahdi_echocan_kb1.c?view=diff&rev=4401&r1=4400&r2=4401
==============================================================================
--- linux/team/kpfleming/modular_ec/drivers/dahdi/dahdi_echocan_kb1.c (original)
+++ linux/team/kpfleming/modular_ec/drivers/dahdi/dahdi_echocan_kb1.c Wed Jun 18 18:18:47 2008
@@ -34,6 +34,7 @@
 #include <dahdi/kernel.h>
 
 static int debug;
+static int aggressive;
 
 #define module_printk(level, fmt, args...) printk(level "%s: " fmt, THIS_MODULE->name, ## args)
 #define debug_printk(level, fmt, args...) if (debug >= level) printk("%s (%s): " fmt, THIS_MODULE->name, __FUNCTION__, ## args)
@@ -617,9 +618,7 @@
 
 	memset(*ec, 0, size);
 
-#ifdef AGGRESSIVE_SUPPRESSOR
-	(*ec)->aggressive = 1;
-#endif
+	(*ec)->aggressive = aggressive;
 
 	for (x = 0; x < ecp->param_count; x++) {
 		for (c = p[x].name; *c; c++)
@@ -685,6 +684,7 @@
 }
 
 module_param(debug, int, S_IRUGO | S_IWUSR);
+module_param(aggressive, int, S_IRUGO | S_IWUSR);
 
 MODULE_DESCRIPTION("DAHDI 'KB1' Echo Canceler");
 MODULE_AUTHOR("Kris Boutilier");

Modified: linux/team/kpfleming/modular_ec/drivers/dahdi/dahdi_echocan_mg2.c
URL: http://svn.digium.com/view/dahdi/linux/team/kpfleming/modular_ec/drivers/dahdi/dahdi_echocan_mg2.c?view=diff&rev=4401&r1=4400&r2=4401
==============================================================================
--- linux/team/kpfleming/modular_ec/drivers/dahdi/dahdi_echocan_mg2.c (original)
+++ linux/team/kpfleming/modular_ec/drivers/dahdi/dahdi_echocan_mg2.c Wed Jun 18 18:18:47 2008
@@ -34,6 +34,7 @@
 #include <dahdi/kernel.h>
 
 static int debug;
+static int aggressive;
 
 #define module_printk(level, fmt, args...) printk(level "%s: " fmt, THIS_MODULE->name, ## args)
 #define debug_printk(level, fmt, args...) if (debug >= level) printk("%s (%s): " fmt, THIS_MODULE->name, __FUNCTION__, ## args)
@@ -755,9 +756,7 @@
 
 	memset(*ec, 0, size);
 
-#ifdef AGGRESSIVE_SUPPRESSOR
-	(*ec)->aggressive = 1;
-#endif
+	(*ec)->aggressive = aggressive;
 
 	for (x = 0; x < ecp->param_count; x++) {
 		for (c = p[x].name; *c; c++)
@@ -829,6 +828,7 @@
 }
 
 module_param(debug, int, S_IRUGO | S_IWUSR);
+module_param(aggressive, int, S_IRUGO | S_IWUSR);
 
 MODULE_DESCRIPTION("DAHDI 'MG2' Echo Canceler");
 MODULE_AUTHOR("Michael Gernoth");




More information about the svn-commits mailing list