[svn-commits] sruffell: linux/trunk r6621 - /linux/trunk/drivers/dahdi/wcte12xp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu May 14 09:49:14 CDT 2009


Author: sruffell
Date: Thu May 14 09:49:11 2009
New Revision: 6621

URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=6621
Log:
wcte12xp: Set the syncsrc in the span appropriately.

Before this commit, dahdi_tool would report "Internally clocked" for boards
supported by the wcte12xp driver both when receiving timing from the span and
providing it to the span.  Now it reports "Internally clocked" if providing
timeing to the span, and the card if receiving timeing from the span.
DAHDI-65.

Modified:
    linux/trunk/drivers/dahdi/wcte12xp/base.c

Modified: linux/trunk/drivers/dahdi/wcte12xp/base.c
URL: http://svn.asterisk.org/svn-view/dahdi/linux/trunk/drivers/dahdi/wcte12xp/base.c?view=diff&rev=6621&r1=6620&r2=6621
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/base.c Thu May 14 09:49:11 2009
@@ -935,10 +935,13 @@
 	struct t1 *wc = span->pvt;
 
 	/* Do we want to SYNC on receive or not */
-	if (lc->sync)
+	if (lc->sync) {
 		set_bit(7, &wc->ctlreg);
-	else
+		span->syncsrc = span->spanno;
+	} else {
 		clear_bit(7, &wc->ctlreg);
+		span->syncsrc = 0;
+	}
 
 	/* If already running, apply changes immediately */
 	if (test_bit(DAHDI_FLAGBIT_RUNNING, &span->flags))




More information about the svn-commits mailing list