From 47f0fde0f16a3d54da4610e400605bd6e7be5bf3 Mon Sep 17 00:00:00 2001 From: Doug Bailey Date: Tue, 17 Jun 2014 17:23:35 -0500 Subject: [PATCH] wct4xxp: AMI w/CAS errata applies to octal card as well. Fixes inability to reliably get CAS (robbed-bits) when using AMI line encoding on the TE820 card. Signed-off-by: Shaun Ruffell Signed-off-by: Russ Meyerriecks --- drivers/dahdi/wct4xxp/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index 98d2587..e2b4a90 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -2724,7 +2724,7 @@ static void __t4_configure_t1(struct t4 *wc, int unit, int lineconfig, int txlev if (lineconfig & DAHDI_CONFIG_AMI) { line = "AMI"; /* workaround for errata #2 in ES v3 09-10-16 */ - fmr0 = (wc->falc31) ? 0xb0 : 0xa0; + fmr0 = (is_octal(wc) || wc->falc31) ? 0xb0 : 0xa0; } else { line = "B8ZS"; fmr0 = 0xf0; @@ -2823,7 +2823,7 @@ static void __t4_configure_e1(struct t4 *wc, int unit, int lineconfig) if (lineconfig & DAHDI_CONFIG_AMI) { line = "AMI"; /* workaround for errata #2 in ES v3 09-10-16 */ - fmr0 = (wc->falc31) ? 0xb0 : 0xa0; + fmr0 = (is_octal(wc) || wc->falc31) ? 0xb0 : 0xa0; } else { line = "HDB3"; fmr0 = 0xf0;