[Asterisk-cvs] zaptel wcfxs.c,1.55,1.56

markster at lists.digium.com markster at lists.digium.com
Wed May 5 10:54:50 CDT 2004


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv3086

Modified Files:
	wcfxs.c 
Log Message:
Add timingonly parameter to wcfxs


Index: wcfxs.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wcfxs.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- wcfxs.c	4 May 2004 20:42:58 -0000	1.55
+++ wcfxs.c	5 May 2004 15:03:21 -0000	1.56
@@ -223,6 +223,7 @@
 
 static int debug = 0;
 static int robust = 0;
+static int timingonly = 0;
 
 static int wcfxs_init_proslic(struct wcfxs *wc, int card, int fast , int manual, int sane);
 
@@ -1649,7 +1650,7 @@
 	}
 
 	/* Return error if nothing initialized okay. */
-	if (!wc->cardflag)
+	if (!wc->cardflag && !timingonly)
 		return -1;
 	__wcfxs_setcreg(wc, WC_SYNC, (wc->cardflag << 1) | 0x1);
 	return 0;
@@ -1880,6 +1881,8 @@
 }
 
 MODULE_PARM(debug, "i");
+MODULE_PARM(robust, "i");
+MODULE_PARM(timingonly, "i");
 MODULE_DESCRIPTION("Wildcard S100P Zaptel Driver");
 MODULE_AUTHOR("Mark Spencer <markster at linux-support.net>");
 #ifdef MODULE_LICENSE




More information about the svn-commits mailing list