summaryrefslogtreecommitdiff
path: root/mec3.h
diff options
context:
space:
mode:
Diffstat (limited to 'mec3.h')
-rwxr-xr-xmec3.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/mec3.h b/mec3.h
index 88ad3cb..28cfa6e 100755
--- a/mec3.h
+++ b/mec3.h
@@ -111,8 +111,8 @@ static inline short echo_can_update(echo_can_state_t *ec, short iref, short isig
float beta; /* Factor */
float se; /* Simulated echo */
/* Convert to floats about 1.0 */
- ref = (iref/32767.0);
- sig = (isig/32767.0);
+ ref = (((float)iref)/32767.0);
+ sig = (((float)isig)/32767.0);
#if 0
printf("start: %d, finish: %d\n", ec->start, ec->finish);
@@ -202,6 +202,7 @@ static inline echo_can_state_t *echo_can_create(int taps, int adaption_mode)
taps = NTAPS;
ec = MALLOC(sizeof(echo_can_state_t));
if (ec) {
+ printk("Allocating MEC3 canceller\n");
memset(ec, 0, sizeof(ec));
ec->taps = taps;
ec->pos = ec->taps-1;