diff options
Diffstat (limited to 'zaptel.c')
-rwxr-xr-x | zaptel.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -4394,6 +4394,7 @@ static inline void __zt_process_getaudio_chunk(struct zt_chan *ss, unsigned char /* Okay, now we've got something to transmit */ for (x=0;x<ZT_CHUNKSIZE;x++) getlin[x] = ZT_XLAW(txb[x], ms); +#ifndef NO_ECHOCAN_DISABLE if (ms->ec) { for (x=0;x<ZT_CHUNKSIZE;x++) { /* Check for echo cancel disabling tone */ @@ -4409,6 +4410,7 @@ static inline void __zt_process_getaudio_chunk(struct zt_chan *ss, unsigned char } } } +#endif if ((!ms->confmute && !ms->dialing) || (ms->flags & ZT_FLAG_PSEUDO)) { /* Handle conferencing on non-clear channel and non-HDLC channels */ switch(ms->confmode & ZT_CONF_MODE_MASK) { @@ -5131,6 +5133,7 @@ static inline void __zt_process_putaudio_chunk(struct zt_chan *ss, unsigned char putlin[x] = ZT_XLAW(rxb[x], ms); } +#ifndef NO_ECHOCAN_DISABLE if (ms->ec) { for (x=0;x<ZT_CHUNKSIZE;x++) { if (echo_can_disable_detector_update(&ms->rxecdis, putlin[x])) { @@ -5145,6 +5148,7 @@ static inline void __zt_process_putaudio_chunk(struct zt_chan *ss, unsigned char } } } +#endif /* if doing rx tone decoding */ if (ms->rxp1 && ms->rxp2 && ms->rxp3) { |