[zaptel-commits] trunk - r847 in /trunk: wctdm.c wctdm24xxp.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Sun Dec 4 11:11:36 CST 2005


Author: markster
Date: Sun Dec  4 11:11:35 2005
New Revision: 847

URL: http://svn.digium.com/view/zaptel?rev=847&view=rev
Log:
Expand VBat with heavy ringing for maximum ring voltage, don't use 
boostringer by default in wctdm24xxp

Modified:
    trunk/wctdm.c
    trunk/wctdm24xxp.c

Modified: trunk/wctdm.c
URL: http://svn.digium.com/view/zaptel/trunk/wctdm.c?rev=847&r1=846&r2=847&view=diff
==============================================================================
--- trunk/wctdm.c (original)
+++ trunk/wctdm.c Sun Dec  4 11:11:35 2005
@@ -1689,6 +1689,7 @@
 		wctdm_proslic_setreg_indirect(wc, card, 21, 0x01b9);
 		/* Beef up Ringing voltage to 89V */
 		if (boostringer) {
+			wctdm_setreg(wc, card, 74, 0x3f);
 			if (wctdm_proslic_setreg_indirect(wc, card, 21, 0x247)) 
 				return -1;
 			printk("Boosting fast ringer on slot %d (89V peak)\n", card + 1);
@@ -1701,6 +1702,7 @@
 	} else {
 		/* Beef up Ringing voltage to 89V */
 		if (boostringer) {
+			wctdm_setreg(wc, card, 74, 0x3f);
 			if (wctdm_proslic_setreg_indirect(wc, card, 21, 0x1d1)) 
 				return -1;
 			printk("Boosting ringer on slot %d (89V peak)\n", card + 1);

Modified: trunk/wctdm24xxp.c
URL: http://svn.digium.com/view/zaptel/trunk/wctdm24xxp.c?rev=847&r1=846&r2=847&view=diff
==============================================================================
--- trunk/wctdm24xxp.c (original)
+++ trunk/wctdm24xxp.c Sun Dec  4 11:11:35 2005
@@ -400,7 +400,7 @@
 static int robust = 0;
 static int timingonly = 0;
 static int lowpower = 0;
-static int boostringer = 1;
+static int boostringer = 0;
 static int fastringer = 0;
 static int _opermode = 0;
 static char *opermode = "FCC";
@@ -911,7 +911,7 @@
 
 static int wait_access(struct wctdm *wc, int card)
 {
-    unsigned char data;
+    unsigned char data=0;
     long origjiffies;
     int count = 0;
 
@@ -1999,6 +1999,7 @@
 		wctdm_proslic_setreg_indirect(wc, card, 21, 0x01b9);
 		/* Beef up Ringing voltage to 89V */
 		if (boostringer) {
+			wctdm_setreg(wc, card, 74, 0x3f);
 			if (wctdm_proslic_setreg_indirect(wc, card, 21, 0x247)) 
 				return -1;
 			printk("Boosting fast ringer on slot %d (89V peak)\n", card + 1);
@@ -2011,6 +2012,7 @@
 	} else {
 		/* Beef up Ringing voltage to 89V */
 		if (boostringer) {
+			wctdm_setreg(wc, card, 74, 0x3f);
 			if (wctdm_proslic_setreg_indirect(wc, card, 21, 0x1d1)) 
 				return -1;
 			printk("Boosting ringer on slot %d (89V peak)\n", card + 1);



More information about the zaptel-commits mailing list