[zaptel-commits] trunk r965 - /trunk/wct4xxp.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Tue Feb 21 14:20:06 MST 2006


Author: markster
Date: Tue Feb 21 15:20:05 2006
New Revision: 965

URL: http://svn.digium.com/view/zaptel?rev=965&view=rev
Log:
Support dual span card on timing

Modified:
    trunk/wct4xxp.c

Modified: trunk/wct4xxp.c
URL: http://svn.digium.com/view/zaptel/trunk/wct4xxp.c?rev=965&r1=964&r2=965&view=diff
==============================================================================
--- trunk/wct4xxp.c (original)
+++ trunk/wct4xxp.c Tue Feb 21 15:20:05 2006
@@ -1447,7 +1447,7 @@
 		printk("Swapping card %d from %d to %d\n", wc->num, wc->syncsrc, syncsrc);
 		wc->syncsrc = syncsrc;
 		/* Update sync sources */
-		for (i = 0; i < 4; i++) {
+		for (i = 0; i < wc->numspans; i++) {
 			wc->tspans[i]->span.syncsrc = wc->syncsrc;
 		}
 		if (syncnum == wc->num) {
@@ -1479,7 +1479,7 @@
 		while (p < 8) {
 			nonzero = 0;
 			for (x=0;cards[x];x++) {
-				for (i = 0; i < 4; i++) {
+				for (i = 0; i < wc->numspans; i++) {
 					if (cards[x]->tspans[i]->syncpos) {
 						nonzero = 1;
 						if ((cards[x]->tspans[i]->syncpos == p) &&



More information about the zaptel-commits mailing list