mISDN: DSP now uses ring buffer for echo canceler
authorAndreas Eversberg <andreas@eversberg.eu>
Fri, 22 May 2009 11:04:45 +0000 (11:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2009 07:51:30 +0000 (00:51 -0700)
DSP now uses ring buffer for echo canceler.
Added missing include in l1oip_codec.c

Signed-off-by: Andreas Eversberg <andreas@eversberg.eu>
Signed-off-by: Karsten Keil <keil@b1-systems.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/dsp.h
drivers/isdn/mISDN/l1oip_codec.c

index 98a33c58f0911f4b7482eb40a949a9a2412407f2..0a4a362b89ceca25fe8d58926fd577e0060e571b 100644 (file)
@@ -112,7 +112,8 @@ struct dsp_conf {
 
 #define DSP_DTMF_NPOINTS 102
 
-#define ECHOCAN_BUFLEN (4*128)
+#define ECHOCAN_BUFF_SIZE 0x400 /* must be 2**n */
+#define ECHOCAN_BUFF_MASK 0x3ff /* -1 */
 
 struct dsp_dtmf {
        int             treshold; /* above this is dtmf (square of) */
index e4ecba3d48dfcf75703aee66c5a443b9f39c2c62..bbfd1b863ed3da49f95138ed3389c2ba4336df05 100644 (file)
@@ -48,6 +48,7 @@ NOTE: The bytes are handled as they are law-encoded.
 
 #include <linux/vmalloc.h>
 #include <linux/mISDNif.h>
+#include <linux/in.h>
 #include "core.h"
 #include "l1oip.h"