diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-09-21 15:50:24 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-09-21 15:50:24 +0000 |
commit | db35fe703b3262cbdec1d1eff9b20a65c888d441 (patch) | |
tree | d793a6d485c431bc42dfed33e1e6916dcfe4314f /wct1xxp.c | |
parent | 2aff1ceedf24d5ddf41e55569dee4056e9d6a248 (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-x | wct1xxp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 */ |