summaryrefslogtreecommitdiff
path: root/wct4xxp.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-09 19:12:15 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-09 19:12:15 +0000
commitb0e0fe7eb1bab189edd10614eeeb108c5736b651 (patch)
tree17df3c68a3d4cc0d0afc7a27a574c78de2b12549 /wct4xxp.c
parent95468285f35850b23c2f6586c7087ed20ac34fea (diff)
Don't consider freshly started spans as timing sources (bug #1397)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@357 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-xwct4xxp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index 911dbeb..9969b72 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -875,7 +875,10 @@ static int t4_startup(struct zt_span *span)
}
if (!alreadyrunning) {
+ /* Never trust timing from something we're just starting. Let it settle first. */
+ span->alarms |= ZT_ALARM_RECOVER;
span->flags |= ZT_FLAG_RUNNING;
+ wc->alarmtimer[span->offset] = ZT_ALARMSETTLE_TIME;
wc->spansstarted++;
/* enable interrupts */
/* Start DMA, enabling DMA interrupts on read only */