summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel.c')
-rwxr-xr-xzaptel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zaptel.c b/zaptel.c
index 02ac550..85ad41e 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -65,7 +65,7 @@
/* Get helper arithmetic */
#include "arith.h"
-#ifdef CONFIG_ZAPTEL_MMX
+#if defined(CONFIG_ZAPTEL_MMX) || defined(ECHO_CAN_MARK3)
#include <asm/i387.h>
#endif
@@ -236,7 +236,7 @@ of the next sample chunk's data (next time around the world).
#include "digits.h"
-#ifdef CONFIG_ZAPTEL_MMX
+#if defined(CONFIG_ZAPTEL_MMX) || defined(ECHO_CAN_MARK3)
/* XXX kernel_fpu_begin() is NOT exported properly, so we have to make
a local version. Somebody fix this! XXX */
@@ -4605,7 +4605,7 @@ void zt_ec_chunk(struct zt_chan *ss, unsigned char *rxchunk, const unsigned char
spin_lock_irqsave(&ss->lock, flags);
/* Perform echo cancellation on a chunk if necessary */
if (ss->ec) {
-#ifdef CONFIG_ZAPTEL_MMX
+#if defined(CONFIG_ZAPTEL_MMX) || defined(ECHO_CAN_MARK3)
zt_kernel_fpu_begin();
#endif
for (x=0;x<ZT_CHUNKSIZE;x++) {
@@ -4613,7 +4613,7 @@ void zt_ec_chunk(struct zt_chan *ss, unsigned char *rxchunk, const unsigned char
rxlin = echo_can_update(ss->ec, ZT_XLAW(txchunk[x], ss), rxlin);
rxchunk[x] = ZT_LIN2X((int)rxlin, ss);
}
-#ifdef CONFIG_ZAPTEL_MMX
+#if defined(CONFIG_ZAPTEL_MMX) || defined(ECHO_CAN_MARK3)
kernel_fpu_end();
#endif
}