summaryrefslogtreecommitdiff
path: root/kernel/xpp/xbus-pcm.c
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-08-07 10:12:36 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-08-07 10:12:36 +0000
commit84e47a6c56efeea2b7c48fba26ef976950e1dd27 (patch)
tree7e53df8d728ed40540bfe638bec642edc8645d8c /kernel/xpp/xbus-pcm.c
parent945005aaf01c6a559c1f8a9f41780e2400988099 (diff)
xpp: debuggging parameter pcmtx_chan now refers to a zap channel number.
Also fix a typo in card_fxs. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4461 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/xpp/xbus-pcm.c')
-rw-r--r--kernel/xpp/xbus-pcm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/xpp/xbus-pcm.c b/kernel/xpp/xbus-pcm.c
index ff4bee1..72a6588 100644
--- a/kernel/xpp/xbus-pcm.c
+++ b/kernel/xpp/xbus-pcm.c
@@ -839,7 +839,9 @@ void generic_card_pcm_fromspan(xbus_t *xbus, xpd_t *xpd, xpp_line_t lines, xpack
if(IS_SET(lines, i)) {
if(SPAN_REGISTERED(xpd)) {
#ifdef DEBUG_PCMTX
- if(pcmtx >= 0 && pcmtx_chan == i)
+ int channo = xpd->span.chans[i].channo;
+
+ if(pcmtx >= 0 && pcmtx_chan == channo)
memset((u_char *)pcm, pcmtx, ZT_CHUNKSIZE);
else
#endif