[dahdi-commits] sruffell: linux/trunk r9132 - /linux/trunk/drivers/dahdi/wctdm24xxp/

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Fri Aug 13 13:36:22 CDT 2010


Author: sruffell
Date: Fri Aug 13 13:36:15 2010
New Revision: 9132

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9132
Log:
wctdm24xxp: Set the 'spantype' for the digital spans.

Defaults to "TE" but can be set by software to "NT" by dahdi_cfg.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>

Modified:
    linux/trunk/drivers/dahdi/wctdm24xxp/base.c
    linux/trunk/drivers/dahdi/wctdm24xxp/xhfc.c

Modified: linux/trunk/drivers/dahdi/wctdm24xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wctdm24xxp/base.c?view=diff&rev=9132&r1=9131&r2=9132
==============================================================================
--- linux/trunk/drivers/dahdi/wctdm24xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctdm24xxp/base.c Fri Aug 13 13:36:15 2010
@@ -3834,6 +3834,7 @@
 		s->span.linecompat = DAHDI_CONFIG_AMI | DAHDI_CONFIG_B8ZS | DAHDI_CONFIG_D4;
 		s->span.linecompat |= DAHDI_CONFIG_ESF | DAHDI_CONFIG_HDB3 | DAHDI_CONFIG_CCS | DAHDI_CONFIG_CRC4;
 		s->span.linecompat |= DAHDI_CONFIG_NTTE | DAHDI_CONFIG_TERM;
+		s->span.spantype = "TE";
 	} else {
 		s->span.ops = &wctdm24xxp_analog_span_ops;
 		s->span.flags = DAHDI_FLAG_RBS;

Modified: linux/trunk/drivers/dahdi/wctdm24xxp/xhfc.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wctdm24xxp/xhfc.c?view=diff&rev=9132&r1=9131&r2=9132
==============================================================================
--- linux/trunk/drivers/dahdi/wctdm24xxp/xhfc.c (original)
+++ linux/trunk/drivers/dahdi/wctdm24xxp/xhfc.c Fri Aug 13 13:36:15 2010
@@ -2146,6 +2146,8 @@
 	int all_modes = 0, all_terms = 0;
 	int i;
 
+	bspan->wspan->span.spantype = (te_mode > 0) ? "TE" : "NT";
+
 	bspan->te_mode = te_mode;
 	bspan->term_on = term_on;
 




More information about the dahdi-commits mailing list