~ubuntu-branches/ubuntu/quantal/zaptel/quantal

« back to all changes in this revision

Viewing changes to kernel/zconfig.h

  • Committer: Bazaar Package Importer
  • Author(s): Tzafrir Cohen
  • Date: 2008-08-28 22:58:23 UTC
  • mfrom: (11.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080828225823-r8bdunirm8hmc76m
Tags: 1:1.4.11~dfsg-2
* Patch xpp_fxs_power: Fixed an issue with hook detection of the Astribank
  FXS module.
* Don't fail init.d script if fxotune fails. This may happen if running it
  when Asterisk is already running.
* Bump standards version to 3.8.0.0 .
* Ignore false lintian warning ("m-a a-i" has "a a").
* Patch xpp_fxo_cid_always: do always pass PCM if that's what the user
  asked.
* Patch vzaphfc_proc_root_dir: fix vzaphfc on 2.6.26.
* Patch wcte12xp_flags: Proper time for irq save flags.
* Patch headers_2627: Fix location of semaphore.h for 2.6.27 .
* Patch xpp_fxs_dtmf_leak: Don't play DTMFs to the wrong channel.
* Patch wctdm_fix_alarm: Fix sending channel alarms.
* Patch device_class_2626: Fix building 2.6.26 (Closes: #493397).
* Using dh_lintian for lintian overrides, hence requiring debhelper 6.0.7.
* Lintian: we know we have direct changes. Too bad we're half-upstream :-(
* Fix doc-base section names. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Zaptel configuration options 
 
3
 *
 
4
 */
 
5
#ifndef _ZCONFIG_H
 
6
#define _ZCONFIG_H
 
7
 
 
8
#ifdef __KERNEL__
 
9
#include <linux/version.h>
 
10
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
 
11
#include <linux/config.h>
 
12
#else
 
13
#include <linux/autoconf.h>
 
14
#endif
 
15
#endif
 
16
 
 
17
/* Zaptel compile time options */
 
18
 
 
19
/*
 
20
 * Uncomment if you have a European phone, or any other phone with a 
 
21
 *  short flash time.
 
22
 * This will stop the flash being mis-detected as a pulse dial "1" on
 
23
 *  phones with short flashes
 
24
 */
 
25
/* #define SHORT_FLASH_TIME */
 
26
 
 
27
/*
 
28
 * Uncomment to disable calibration and/or DC/DC converter tests
 
29
 * (not generally recommended)
 
30
 */
 
31
/* #define NO_CALIBRATION */
 
32
/* #define NO_DCDC */
 
33
 
 
34
/*
 
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.
 
38
 */
 
39
/* #define BOOST_RINGER */
 
40
 
 
41
/*
 
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
 
44
 *
 
45
 */
 
46
/* #define CONFIG_CALC_XLAW */
 
47
 
 
48
/*
 
49
 * Define if you want MMX optimizations in zaptel
 
50
 *
 
51
 * Note: CONFIG_ZAPTEL_MMX is generally incompatible with AMD 
 
52
 * processors and can cause system instability!
 
53
 * 
 
54
 */
 
55
/* #define CONFIG_ZAPTEL_MMX */
 
56
 
 
57
/** If defined: the user must define exactly one ECHO_CAN_ var: */
 
58
#ifndef ECHO_CAN_FROMENV 
 
59
 
 
60
/*
 
61
 * Pick your echo canceller: MARK2, MARK3, STEVE, or STEVE2 :)
 
62
 * 
 
63
 */ 
 
64
/* #define ECHO_CAN_STEVE */
 
65
/* #define ECHO_CAN_STEVE2 */
 
66
/* #define ECHO_CAN_KB1 */
 
67
/* This is the new latest and greatest */
 
68
#define ECHO_CAN_MG2
 
69
 
 
70
/*
 
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.
 
74
 */
 
75
/* #define ECHO_CAN_JP1 */
 
76
 
 
77
/*
 
78
 * Uncomment for aggressive residual echo suppression under 
 
79
 * MARK2, KB1, and MG2 echo canceler
 
80
 */
 
81
/* #define AGGRESSIVE_SUPPRESSOR */
 
82
#endif /* ifndef ECHO_CAN_FROMENV */
 
83
/*
 
84
 * Define to turn off the echo canceler disable tone detector,
 
85
 * which will cause zaptel to ignore the 2100 Hz echo cancel disable
 
86
 * tone.
 
87
 */
 
88
/* #define NO_ECHOCAN_DISABLE */
 
89
 
 
90
/* udev support */
 
91
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,1)
 
92
#define CONFIG_ZAP_UDEV
 
93
#endif
 
94
 
 
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
 
101
#else
 
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
 
106
#endif
 
107
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,3)
 
108
#define HDLC_MAINTAINERS_ARE_MORE_STUPID_THAN_I_THOUGHT
 
109
#endif
 
110
#endif
 
111
#endif
 
112
#ifdef CONFIG_PPP
 
113
#define CONFIG_ZAPATA_PPP
 
114
#endif
 
115
 
 
116
/*
 
117
 * Uncomment CONFIG_ZAPATA_NET to enable SyncPPP, CiscoHDLC, and Frame Relay
 
118
 * support.
 
119
 */
 
120
/* #define CONFIG_ZAPATA_NET */
 
121
 
 
122
/*
 
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).
 
126
 */
 
127
/* #define CONFIG_OLD_HDLC_API */
 
128
 
 
129
/*
 
130
 * Uncomment for Generic PPP support (i.e. ZapRAS)
 
131
 */
 
132
/* #define CONFIG_ZAPATA_PPP */
 
133
/*
 
134
 * Uncomment to enable "watchdog" to monitor if interfaces
 
135
 * stop taking interrupts or otherwise misbehave
 
136
 */
 
137
/* #define CONFIG_ZAPTEL_WATCHDOG */
 
138
 
 
139
/*
 
140
 * Uncomment for Non-standard FXS groundstart start state (A=Low, B=Low)
 
141
 * particularly for CAC channel bank groundstart FXO ports.
 
142
 */
 
143
/* #define CONFIG_CAC_GROUNDSTART */
 
144
 
 
145
/* 
 
146
 * Uncomment if you happen have an early TDM400P Rev H which 
 
147
 * sometimes forgets its PCI ID to have wcfxs match essentially all
 
148
 * subvendor ID's
 
149
 */
 
150
/* #define TDM_REVH_MATCHALL */
 
151
 
 
152
/* 
 
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 :-) ).
 
155
 *
 
156
 * NOTE: *DO NOT* Enable "EMFLASH" and "EMPULSE" at the same time!!
 
157
 *
 
158
 */
 
159
/* #define EMFLASH */
 
160
 
 
161
/* 
 
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}
 
166
 * to be recognized.
 
167
 *
 
168
 * NOTE: *DO NOT* Enable "EMFLASH" and "EMPULSE" at the same time!!
 
169
 *
 
170
 */
 
171
/* #define EMPULSE */
 
172
 
 
173
/* 
 
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.
 
177
 */
 
178
#define RINGBEGIN
 
179
 
 
180
/* 
 
181
 * Uncomment the following if you need to support FXS Flash events.
 
182
 * Most applications will want this commented out.
 
183
 */
 
184
/* #define FXSFLASH */
 
185
 
 
186
/*
 
187
 * Enable sync_tick() calls. Allows low-level drivers to synchronize
 
188
 * their internal clocks to the zaptel master clock.
 
189
 */
 
190
#define ZAPTEL_SYNC_TICK
 
191
 
 
192
/*
 
193
 * Skip processing PCM if low-level driver won't use it anyway
 
194
 */
 
195
/* #define      OPTIMIZE_CHANMUTE */
 
196
 
 
197
#endif