summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-02-28 08:31:15 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-02-28 08:31:15 +0000
commitc3364cb7d304c9bd83b633095cd88d7b8c08ea18 (patch)
treec81d89d1eb2cd84d111ffb3ba6bbe5ac0a7f8777 /zaptel.c
parent340eee9be9f6dabd6c106eeabb21e442b7178093 (diff)
If the span sets its sync_tick method, call it on every tick of the sync
master. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2249 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.c')
-rw-r--r--zaptel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/zaptel.c b/zaptel.c
index c519310..65e7426 100644
--- a/zaptel.c
+++ b/zaptel.c
@@ -6631,6 +6631,10 @@ 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);