[Asterisk-cvs] zaptel wcfxs.c,1.62,1.63

markster at lists.digium.com markster at lists.digium.com
Tue May 25 10:24:20 CDT 2004


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

Modified Files:
	wcfxs.c 
Log Message:
Make boostringer an option and use low power ringing


Index: wcfxs.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wcfxs.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- wcfxs.c	24 May 2004 23:29:42 -0000	1.62
+++ wcfxs.c	25 May 2004 14:38:28 -0000	1.63
@@ -231,6 +231,7 @@
 static int robust = 0;
 static int timingonly = 0;
 static int lowpower = 0;
+static int boostringer = 0;
 
 static int wcfxs_init_proslic(struct wcfxs *wc, int card, int fast , int manual, int sane);
 
@@ -1166,11 +1167,16 @@
     wcfxs_setreg(wc, card, 1, 0x08);
 #endif
 
-#ifdef BOOST_RINGER
 	/* Beef up Ringing voltage to 89V */
-	if (wcfxs_proslic_setreg_indirect(wc, card, 23, 0x1d1))
+	if (boostringer) {
+		if (wcfxs_proslic_setreg_indirect(wc, card, 21, 0x1d1)) 
 			return -1;
-#endif
+		printk("Boosting ringinger on slot %d (89V peak)\n", card + 1);
+	} else if (lowpower) {
+		if (wcfxs_proslic_setreg_indirect(wc, card, 21, 0x108)) 
+			return -1;
+		printk("Reducing ring power on slot %d (50V peak)\n", card + 1);
+	}
 	return 0;
 }
 
@@ -1915,6 +1921,7 @@
 MODULE_PARM(robust, "i");
 MODULE_PARM(timingonly, "i");
 MODULE_PARM(lowpower, "i");
+MODULE_PARM(boostringer, "i");
 MODULE_DESCRIPTION("Wildcard TDM400P Zaptel Driver");
 MODULE_AUTHOR("Mark Spencer <markster at linux-support.net>");
 #ifdef MODULE_LICENSE




More information about the svn-commits mailing list