diff options
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 */ |