[svn-commits] sruffell: linux/trunk r9597 - /linux/trunk/drivers/dahdi/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jan 3 18:27:26 UTC 2011


Author: sruffell
Date: Mon Jan  3 12:27:23 2011
New Revision: 9597

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9597
Log:
dahdi: Move the contents of digits.h directly into dahdi-base.c

Clarify that these definitions are not / no longer used outside
dahdi-base.c.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Kinsey Moore <kmoore at digium.com>

Removed:
    linux/trunk/drivers/dahdi/digits.h
Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=9597&r1=9596&r2=9597
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Mon Jan  3 12:27:23 2011
@@ -287,7 +287,30 @@
 	DIGIT_MODE_MFR2_REV,
 };
 
-#include "digits.h"
+#define DEFAULT_DTMF_LENGTH	(100 * DAHDI_CHUNKSIZE)
+#define DEFAULT_MFR1_LENGTH	(68 * DAHDI_CHUNKSIZE)
+#define DEFAULT_MFR2_LENGTH	(100 * DAHDI_CHUNKSIZE)
+#define PAUSE_LENGTH		(500 * DAHDI_CHUNKSIZE)
+
+/* At the end of silence, the tone stops */
+static struct dahdi_tone dtmf_silence = {
+	.tonesamples = DEFAULT_DTMF_LENGTH,
+};
+
+/* At the end of silence, the tone stops */
+static struct dahdi_tone mfr1_silence = {
+	.tonesamples = DEFAULT_MFR1_LENGTH,
+};
+
+/* At the end of silence, the tone stops */
+static struct dahdi_tone mfr2_silence = {
+	.tonesamples = DEFAULT_MFR2_LENGTH,
+};
+
+/* A pause in the dialing */
+static struct dahdi_tone tone_pause = {
+	.tonesamples = PAUSE_LENGTH,
+};
 
 static struct dahdi_dialparams global_dialparams = {
 	.dtmf_tonelen = DEFAULT_DTMF_LENGTH,




More information about the svn-commits mailing list