diff options
Diffstat (limited to 'zaptel-base.c')
-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 |