[svn-commits] rmeyerriecks: linux/trunk r9312 - /linux/trunk/drivers/dahdi/wct4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Sep 8 16:50:52 CDT 2010


Author: rmeyerriecks
Date: Wed Sep  8 16:50:48 2010
New Revision: 9312

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9312
Log:
wct4xxp: Update span-local struct with timing info

dahdi_tool was incorrectly reporting all spans to be in local timing
mode. This is because the driver tracks which span it's timing syncs to,
within the card local struct "wc". We have to manually go through and
copy timing updates to the span local structs because this is what
dahdi_tool actually reads.

dahdi-526

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

Modified: linux/trunk/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wct4xxp/base.c?view=diff&rev=9312&r1=9311&r2=9312
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Wed Sep  8 16:50:48 2010
@@ -2396,7 +2396,7 @@
 
 static void __t4_set_timing_source_auto(struct t4 *wc)
 {
-	int x;
+	int x, i;
 	int firstprio, secondprio;
 	firstprio = secondprio = 4;
 
@@ -2454,6 +2454,13 @@
 			/* Default rclk to lock with span 1 */
 			__t4_set_rclk_src(wc, 0);
 			__t4_set_sclk_src(wc, WC_SELF, 0, 0);
+		}
+
+		/* Propagate sync selection to dahdi_span struct
+		 * this is read by dahdi_tool to display the span's
+		 * master/slave sync information */
+		for (i = 0; i < wc->numspans; i++) {
+			wc->tspans[i]->span.syncsrc = wc->syncsrc + 1;
 		}
 	}
 }




More information about the svn-commits mailing list