diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-09-04 16:16:26 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-09-04 16:16:26 +0000 |
commit | 32bd02693b852a1a2214bf0c1380e101c0b183e1 (patch) | |
tree | 9d72a72e1011bdb9f96189eeea78608c13917f7f | |
parent | 66e924c18485595c191630202ada578e72436f0b (diff) |
Fixing the ZAPTEL_SYNC_TICK patch for zaptel-base.c (#9645)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2992 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | zaptel-base.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/zaptel-base.c b/zaptel-base.c index 5434cd3..643bdf9 100644 --- a/zaptel-base.c +++ b/zaptel-base.c @@ -6805,10 +6805,6 @@ int zt_transmit(struct zt_span *span) int x,y,z; unsigned long flags; -#ifdef ZAPTEL_SYNC_TICK - if (span->sync_tick) - span->sync_tick(span, span == master); -#endif #if 1 for (x=0;x<span->channels;x++) { spin_lock_irqsave(&span->chans[x].lock, flags); @@ -7025,6 +7021,14 @@ int zt_receive(struct zt_span *span) spin_unlock_irqrestore(&chans[x]->lock, flags); } } +#ifdef ZAPTEL_SYNC_TICK + for (x=0;x<maxspans;x++) { + struct zt_span *s = spans[x]; + + if (s && s->sync_tick) + s->sync_tick(s, s == master); + } +#endif spin_unlock_irqrestore(&bigzaplock, flagso); } #endif |