[svn-commits] trunk r1055 - /trunk/wctdm.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon May 15 12:19:47 MST 2006


Author: mattf
Date: Mon May 15 14:19:46 2006
New Revision: 1055

URL: http://svn.digium.com/view/zaptel?rev=1055&view=rev
Log:
Modifications for faster pickup time on the FXO module

Modified:
    trunk/wctdm.c

Modified: trunk/wctdm.c
URL: http://svn.digium.com/view/zaptel/trunk/wctdm.c?rev=1055&r1=1054&r2=1055&view=diff
==============================================================================
--- trunk/wctdm.c (original)
+++ trunk/wctdm.c Mon May 15 14:19:46 2006
@@ -378,6 +378,7 @@
 static char *opermode = "FCC";
 static int fxshonormode = 0;
 static int alawoverride = 0;
+static int fastpickup = 0;
 
 static int wctdm_init_proslic(struct wctdm *wc, int card, int fast , int manual, int sane);
 
@@ -1473,7 +1474,11 @@
 	wctdm_setreg(wc, card, 30, reg30);
 
 	/* Misc. DAA parameters */
-	reg31 = 0xa3;
+	if (fastpickup)
+		reg31 = 0xb3;
+	else
+		reg31 = 0xa3;
+
 	reg31 |= (fxo_modes[_opermode].ohs2 << 3);
 	wctdm_setreg(wc, card, 31, reg31);
 
@@ -1485,6 +1490,9 @@
 
 	/* Enable ISO-Cap */
 	wctdm_setreg(wc, card, 6, 0x00);
+
+	if (fastpickup)
+		wctdm_setreg(wc, card, 17, wctdm_getreg(wc, card, 17) | 0x20);
 
 	/* Wait 1000ms for ISO-cap to come up */
 	newjiffies = jiffies;
@@ -2409,6 +2417,7 @@
 module_param(battdebounce, int, 0600);
 module_param(battthresh, int, 0600);
 module_param(alawoverride, int, 0600);
+module_param(fastpickup, int, 0600);
 #else
 MODULE_PARM(debug, "i");
 MODULE_PARM(loopcurrent, "i");
@@ -2424,6 +2433,7 @@
 MODULE_PARM(battdebounce, "i");
 MODULE_PARM(battthresh, "i");
 MODULE_PARM(alawoverride, "i");
+MODULE_PARM(fastpickup, "i");
 #endif
 MODULE_DESCRIPTION("Wildcard TDM400P Zaptel Driver");
 MODULE_AUTHOR("Mark Spencer <markster at digium.com>");



More information about the svn-commits mailing list