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

markster at lists.digium.com markster at lists.digium.com
Mon May 24 19:15:44 CDT 2004


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

Modified Files:
	wcfxs.c 
Log Message:
Perform DC->DC calibration after DC is up


Index: wcfxs.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wcfxs.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- wcfxs.c	19 May 2004 01:45:04 -0000	1.61
+++ wcfxs.c	24 May 2004 23:29:42 -0000	1.62
@@ -807,9 +807,6 @@
 	/* Set period of DC-DC converter to 1/64 khz */
 	wcfxs_setreg(wc, card, 92, 0xff /* was 0xff */);
 
-	/* Engage DC-DC converter */
-	wcfxs_setreg(wc, card, 93, 0x99 /* was 0x19 */);
-
 	/* Wait for VBat to powerup */
 	origjiffies = jiffies;
 
@@ -837,10 +834,10 @@
 		       card, vbat * 376 / 1000, vbat, (int)(((jiffies - origjiffies) * 1000 / HZ)));
 	}
 
-#if 0
-	/* Perform DC-DC calibration */
-	/* wcfxs_setreg(wc, card, 93, 0x80); */
+	/* Engage DC-DC converter */
+	wcfxs_setreg(wc, card, 93, 0x99 /* was 0x19 */);
 
+#if 0
 	origjiffies = jiffies;
 	while(0x80 & wcfxs_getreg(wc, card, 93)) {
 		if ((jiffies - origjiffies) > 2 * HZ) {




More information about the svn-commits mailing list