[dahdi-commits] sruffell: branch linux/2.4 r9654 - /linux/branches/2.4/drivers/dahdi/wct4xxp/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu Jan 20 23:27:28 CST 2011
Author: sruffell
Date: Thu Jan 20 23:27:24 2011
New Revision: 9654
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9654
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
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9312
Modified:
linux/branches/2.4/drivers/dahdi/wct4xxp/base.c
Modified: linux/branches/2.4/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/drivers/dahdi/wct4xxp/base.c?view=diff&rev=9654&r1=9653&r2=9654
==============================================================================
--- linux/branches/2.4/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/branches/2.4/drivers/dahdi/wct4xxp/base.c Thu Jan 20 23:27:24 2011
@@ -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 dahdi-commits
mailing list