diff options
Diffstat (limited to 'mec3.h')
-rwxr-xr-x | mec3.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |