2
* Zaptel configuration options
9
#include <linux/version.h>
10
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
11
#include <linux/config.h>
13
#include <linux/autoconf.h>
17
/* Zaptel compile time options */
20
* Uncomment if you have a European phone, or any other phone with a
22
* This will stop the flash being mis-detected as a pulse dial "1" on
23
* phones with short flashes
25
/* #define SHORT_FLASH_TIME */
28
* Uncomment to disable calibration and/or DC/DC converter tests
29
* (not generally recommended)
31
/* #define NO_CALIBRATION */
35
* Boost ring voltage (Higher ring voltage, takes more power)
36
* Note: this only affects the wcfxsusb and wcusb drivers; all other
37
* drivers have a 'boostringer' module parameter.
39
/* #define BOOST_RINGER */
42
* Define CONFIG_CALC_XLAW if you have a small number of channels and/or
43
* a small level 2 cache, to optimize for few channels
46
/* #define CONFIG_CALC_XLAW */
49
* Define if you want MMX optimizations in zaptel
51
* Note: CONFIG_ZAPTEL_MMX is generally incompatible with AMD
52
* processors and can cause system instability!
55
/* #define CONFIG_ZAPTEL_MMX */
57
/** If defined: the user must define exactly one ECHO_CAN_ var: */
58
#ifndef ECHO_CAN_FROMENV
61
* Pick your echo canceller: MARK2, MARK3, STEVE, or STEVE2 :)
64
/* #define ECHO_CAN_STEVE */
65
/* #define ECHO_CAN_STEVE2 */
66
/* #define ECHO_CAN_KB1 */
67
/* This is the new latest and greatest */
71
* This is only technically an "echo canceller"...
72
* It purposely drops 2 out of 3 samples and sounds horrible.
73
* You really only want this for testing "echo cancelled" audio.
75
/* #define ECHO_CAN_JP1 */
78
* Uncomment for aggressive residual echo suppression under
79
* MARK2, KB1, and MG2 echo canceler
81
/* #define AGGRESSIVE_SUPPRESSOR */
82
#endif /* ifndef ECHO_CAN_FROMENV */
84
* Define to turn off the echo canceler disable tone detector,
85
* which will cause zaptel to ignore the 2100 Hz echo cancel disable
88
/* #define NO_ECHOCAN_DISABLE */
91
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,1)
92
#define CONFIG_ZAP_UDEV
95
/* We now use the linux kernel config to detect which options to use */
96
/* You can still override them below */
97
#if defined(CONFIG_HDLC) || defined(CONFIG_HDLC_MODULE)
98
/* #define CONFIG_ZAPATA_NET */ /* NEVER implicitly turn on ZAPATA_NET */
99
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,20)
100
#define CONFIG_OLD_HDLC_API
102
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
103
/* Starting with 2.4.23 the kernel hdlc api changed again */
104
/* Now we have to use hdlc_type_trans(skb, dev) instead of htons(ETH_P_HDLC) */
105
#define ZAP_HDLC_TYPE_TRANS
107
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,3)
108
#define HDLC_MAINTAINERS_ARE_MORE_STUPID_THAN_I_THOUGHT
113
#define CONFIG_ZAPATA_PPP
117
* Uncomment CONFIG_ZAPATA_NET to enable SyncPPP, CiscoHDLC, and Frame Relay
120
/* #define CONFIG_ZAPATA_NET */
123
* Uncomment CONFIG_OLD_HDLC_API if your are compiling with ZAPATA_NET
124
* defined and you are using the old kernel HDLC interface (or if you get
125
* an error about ETH_P_HDLC while compiling).
127
/* #define CONFIG_OLD_HDLC_API */
130
* Uncomment for Generic PPP support (i.e. ZapRAS)
132
/* #define CONFIG_ZAPATA_PPP */
134
* Uncomment to enable "watchdog" to monitor if interfaces
135
* stop taking interrupts or otherwise misbehave
137
/* #define CONFIG_ZAPTEL_WATCHDOG */
140
* Uncomment for Non-standard FXS groundstart start state (A=Low, B=Low)
141
* particularly for CAC channel bank groundstart FXO ports.
143
/* #define CONFIG_CAC_GROUNDSTART */
146
* Uncomment if you happen have an early TDM400P Rev H which
147
* sometimes forgets its PCI ID to have wcfxs match essentially all
150
/* #define TDM_REVH_MATCHALL */
153
* Uncomment the following if you want to support E&M trunks being
154
* able to "flash" after going off-hook (dont ask why, just nod :-) ).
156
* NOTE: *DO NOT* Enable "EMFLASH" and "EMPULSE" at the same time!!
159
/* #define EMFLASH */
162
* Uncomment the following if you want to support E&M trunks being
163
* able to recognize Dial Pulse digits. This can validly be enabled
164
* so that either Dial Pulse or DTMF/MF tones will be recognized, but
165
* the drawback is that the ONHOOK will take an extra {rxwinktime}
168
* NOTE: *DO NOT* Enable "EMFLASH" and "EMPULSE" at the same time!!
171
/* #define EMPULSE */
174
* Comment out the following if you dont want events to indicate the
175
* beginning of an incoming ring. Most non-Asterisk applications will
176
* want this commented out.
181
* Uncomment the following if you need to support FXS Flash events.
182
* Most applications will want this commented out.
184
/* #define FXSFLASH */
187
* Enable sync_tick() calls. Allows low-level drivers to synchronize
188
* their internal clocks to the zaptel master clock.
190
#define ZAPTEL_SYNC_TICK
193
* Skip processing PCM if low-level driver won't use it anyway
195
/* #define OPTIMIZE_CHANMUTE */