diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-04-29 18:24:04 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-04-29 18:24:04 +0000 |
commit | 5f94a3b91de2c3835d6852d59cab9f6876177156 (patch) | |
tree | 4c25956b6ecdcd5b902ac80b40237bc3e938be44 /include/dahdi/user.h | |
parent | 4a192a3e8f16ed6143377b5726e1fb53b446f5e9 (diff) |
echocan: Improve interface for echo cancelers.
Echo cancelers are now able to report if they are able to automatically disable
their NLP portions in the presence of tones in the audio stream. Also, the
interface is changed to allow user space to just disable the NLP portion of the
echo canceler. These changes improve fax and modem handling in DAHDI.
This commit merges in the changes on
http://svn.digium.com/svn/dahdi/linux/team/kpfleming/echocan_work
Patch by: kpfleming
Also contains improvements to CED tone detection.
(closes issue #13286)
Reported by: viniciusfontes
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6529 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include/dahdi/user.h')
-rw-r--r-- | include/dahdi/user.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/include/dahdi/user.h b/include/dahdi/user.h index 7434fcf..20d7d7e 100644 --- a/include/dahdi/user.h +++ b/include/dahdi/user.h @@ -410,6 +410,24 @@ enum { /* No neon MWI pulses were detected over some period of time */ #define DAHDI_EVENT_NEONMWI_INACTIVE 22 +/* A CED tone was detected on the channel in the transmit direction */ +#define DAHDI_EVENT_TX_CED_DETECTED 23 + +/* A CED tone was detected on the channel in the receive direction */ +#define DAHDI_EVENT_RX_CED_DETECTED 24 + +/* A CNG tone was detected on the channel in the transmit direction */ +#define DAHDI_EVENT_TX_CNG_DETECTED 25 + +/* A CNG tone was detected on the channel in the receive direction */ +#define DAHDI_EVENT_RX_CNG_DETECTED 26 + +/* The echo canceler's NLP (only) was disabled */ +#define DAHDI_EVENT_EC_NLP_DISABLED 27 + +/* The echo canceler's NLP (only) was enabled */ +#define DAHDI_EVENT_EC_NLP_ENABLED 28 + #define DAHDI_EVENT_PULSEDIGIT (1 << 16) /* This is OR'd with the digit received */ #define DAHDI_EVENT_DTMFDOWN (1 << 17) /* Ditto for DTMF key down event */ #define DAHDI_EVENT_DTMFUP (1 << 18) /* Ditto for DTMF key up event */ @@ -1002,9 +1020,12 @@ struct dahdi_vmwi_info { #define DAHDI_STARTUP _IOW(DAHDI_CODE, 99, int) #define DAHDI_SHUTDOWN _IOW(DAHDI_CODE, 100, int) - #define DAHDI_HDLC_RATE _IOW(DAHDI_CODE, 101, int) +/* Put a channel's echo canceller into 'FAX mode' if possible */ + +#define DAHDI_ECHOCANCEL_FAX_MODE _IOW(DAHDI_CODE, 102, int) + struct torisa_debug { unsigned int txerrors; unsigned int irqcount; |