[dahdi-commits] tzafrir: linux/trunk r10209 - /linux/trunk/drivers/dahdi/xpp/card_fxs.c

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Tue Sep 27 12:10:52 CDT 2011


Author: tzafrir
Date: Tue Sep 27 12:10:48 2011
New Revision: 10209

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10209
Log:
xpp: fix FXS D DTMF detection (not zero)

* 'D' DTMF digits were accidentally discarded with the notice message:
  "Bad DTMF value 0. Ignored".
* No need for an odd 1-based translation table anymore - it's 0-based.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

Modified:
    linux/trunk/drivers/dahdi/xpp/card_fxs.c

Modified: linux/trunk/drivers/dahdi/xpp/card_fxs.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/card_fxs.c?view=diff&rev=10209&r1=10208&r2=10209
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/card_fxs.c (original)
+++ linux/trunk/drivers/dahdi/xpp/card_fxs.c Tue Sep 27 12:10:48 2011
@@ -1300,7 +1300,8 @@
 #endif
 
 static const char dtmf_digits[] = {
-	'1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '*', '#', 'A', 'B', 'C', 'D'
+	'D', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '*', '#',
+	'A', 'B', 'C'
 };
 
 /*
@@ -1322,12 +1323,6 @@
 		return;
 	priv = xpd->priv;
 	val &= 0xF;
-	if(val <= 0) {
-		if(key_down)
-			XPD_NOTICE(xpd, "Bad DTMF value %d. Ignored\n", val);
-		return;
-	}
-	val--;
 	digit = dtmf_digits[val];
 	want_mute = IS_SET(priv->want_dtmf_mute, portnum);
 	want_event = IS_SET(priv->want_dtmf_events, portnum);




More information about the dahdi-commits mailing list