[zaptel-commits] tzafrir: branch 1.4 r4461 - in /branches/1.4/kernel/xpp: card_fxs.c xbus-pcm.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Aug 7 05:12:37 CDT 2008


Author: tzafrir
Date: Thu Aug  7 05:12:36 2008
New Revision: 4461

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4461
Log:
xpp: debuggging parameter pcmtx_chan now refers to a zap channel number.

Also fix a typo in card_fxs.

Modified:
    branches/1.4/kernel/xpp/card_fxs.c
    branches/1.4/kernel/xpp/xbus-pcm.c

Modified: branches/1.4/kernel/xpp/card_fxs.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/xpp/card_fxs.c?view=diff&rev=4461&r1=4460&r2=4461
==============================================================================
--- branches/1.4/kernel/xpp/card_fxs.c (original)
+++ branches/1.4/kernel/xpp/card_fxs.c Thu Aug  7 05:12:36 2008
@@ -1134,7 +1134,7 @@
 				update_line_status(xpd, i, 0);
 			}
 			/*
-			 * Must witch to low power. In high power, an ONHOOK
+			 * Must switch to low power. In high power, an ONHOOK
 			 * won't be detected.
 			 */
 			do_chan_power(xbus, xpd, i, 0);

Modified: branches/1.4/kernel/xpp/xbus-pcm.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/xpp/xbus-pcm.c?view=diff&rev=4461&r1=4460&r2=4461
==============================================================================
--- branches/1.4/kernel/xpp/xbus-pcm.c (original)
+++ branches/1.4/kernel/xpp/xbus-pcm.c Thu Aug  7 05:12:36 2008
@@ -839,7 +839,9 @@
 		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




More information about the zaptel-commits mailing list