From 32bd02693b852a1a2214bf0c1380e101c0b183e1 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Tue, 4 Sep 2007 16:16:26 +0000 Subject: 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 --- zaptel-base.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'zaptel-base.c') 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;xchannels;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;xsync_tick) + s->sync_tick(s, s == master); + } +#endif spin_unlock_irqrestore(&bigzaplock, flagso); } #endif -- cgit v1.2.3