summaryrefslogtreecommitdiff
path: root/xpp/xpp_zap.c
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-03 16:46:13 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-03 16:46:13 +0000
commit82e6b0217e63d5a77e7f673bc2a7c3712c84b7e6 (patch)
tree75dd0e4c558d02887f828bbe873998f5c26d81f0 /xpp/xpp_zap.c
parent0599b53369244cd6b3696022309ece91446eae9d (diff)
New xpp release: r4786:
* New firmware protocol version: 2.9 . * fpga_load: initial clean-ups before interface split. * genzaptelconf: Don't leave an empty directory behind (4784) * Increase xpp poll_timeout to 1000ms - useful for CentOS 4 (r4781). * Fix initialization anoyance: if AB don't answer to polls, don't waitfor_xpds, and show no waiting XPDs (r4725). * Disable dtmf_detect by default once again (r4712). * Don't check twice for asterisk to stop. The second test was done while Asterisk was still stopping (r4708). * Support building the kernel with M= instead of with SUBDIRS= , as used in some newer build systems (r4677). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3105 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/xpp_zap.c')
-rw-r--r--xpp/xpp_zap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xpp/xpp_zap.c b/xpp/xpp_zap.c
index 00d7e4d..8f63360 100644
--- a/xpp/xpp_zap.c
+++ b/xpp/xpp_zap.c
@@ -370,6 +370,7 @@ static void xbus_tick(xbus_t *xbus)
xframe_t *xframe = NULL;
xpacket_t *pack = NULL;
size_t pcm_len;
+ bool sent_sync_bit = 0;
/*
* Update zaptel
@@ -417,6 +418,11 @@ static void xbus_tick(xbus_t *xbus)
} while(!pack);
XPACKET_INIT(pack, GLOBAL, PCM_WRITE, xpd->xbus_idx);
XPACKET_LEN(pack) = pcm_len;
+ XPACKET_IS_PCM(pack) = 1;
+ if(!sent_sync_bit) {
+ XPACKET_ADDR(pack).sync_master = 1;
+ sent_sync_bit = 1;
+ }
CALL_XMETHOD(card_pcm_fromspan, xbus, xpd, xpd->wanted_pcm_mask, pack);
XBUS_COUNTER(xbus, TX_PACK_PCM)++;
}