summaryrefslogtreecommitdiff
path: root/wct1xxp.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-09-21 15:50:24 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-09-21 15:50:24 +0000
commitdb35fe703b3262cbdec1d1eff9b20a65c888d441 (patch)
treed793a6d485c431bc42dfed33e1e6916dcfe4314f /wct1xxp.c
parent2aff1ceedf24d5ddf41e55569dee4056e9d6a248 (diff)
Merge E1 fix for CRC E-bit
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@244 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct1xxp.c')
-rwxr-xr-xwct1xxp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/wct1xxp.c b/wct1xxp.c
index bd9eec3..8f36d5a 100755
--- a/wct1xxp.c
+++ b/wct1xxp.c
@@ -411,13 +411,14 @@ static void t1xxp_e1_framer_start(struct t1xxp *wc)
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 @@ static void t1xxp_e1_framer_start(struct t1xxp *wc)
}
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 */