[Asterisk-cvs] zaptel wct1xxp.c,1.2,1.3

markster at lists.digium.com markster at lists.digium.com
Sun Sep 21 10:49:15 CDT 2003


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

Modified Files:
	wct1xxp.c 
Log Message:
Merge E1 fix for CRC E-bit


Index: wct1xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct1xxp.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- wct1xxp.c	18 Jul 2003 18:48:57 -0000	1.2
+++ wct1xxp.c	21 Sep 2003 15:50:24 -0000	1.3
@@ -411,13 +411,14 @@
 	int alreadyrunning = wc->span.flags & ZT_FLAG_RUNNING;
 	long flags;
 	char *crcing = "";
-	unsigned char ccr1, tcr1;
+	unsigned char ccr1, tcr1, tcr2;
 
 	spin_lock_irqsave(&wc->lock, flags);
 
 	/* Build up config */
 	ccr1 = 0;
 	tcr1 = 8;
+	tcr2 = 0;
 	if (wc->span.lineconfig & ZT_CONFIG_CCS) {
 		coding = "CCS"; /* Receive CCS */
 		ccr1 |= 8;
@@ -433,9 +434,11 @@
 	}
 	if (wc->span.lineconfig & ZT_CONFIG_CRC4) {
 		ccr1 |= 0x11;
+		tcr2 |= 0x02;
 		crcing = " with CRC4";
 	}
 	__t1_set_reg(wc, 0x12, tcr1);
+	__t1_set_reg(wc, 0x13, tcr2);
 	__t1_set_reg(wc, 0x14, ccr1);
 	__t1_set_reg(wc, 0x18, 0x20);	/* 120 Ohm */
 	




More information about the svn-commits mailing list