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

« back to all changes in this revision

Viewing changes to 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
 
#endif
13
 
#endif
14
 
 
15
 
/* Zaptel compile time options */
16
 
 
17
 
/*
18
 
 * Uncomment to disable calibration and/or DC/DC converter tests
19
 
 * (not generally recommended)
20
 
 */
21
 
/* #define NO_CALIBRATION */
22
 
/* #define NO_DCDC */
23
 
 
24
 
/*
25
 
 * Boost ring voltage (Higher ring voltage, takes more power)
26
 
 */
27
 
/* #define BOOST_RINGER */
28
 
 
29
 
/*
30
 
 * Define CONFIG_CALC_XLAW if you have a small number of channels and/or
31
 
 * a small level 2 cache, to optimize for few channels
32
 
 *
33
 
 */
34
 
/* #define CONFIG_CALC_XLAW */
35
 
 
36
 
/*
37
 
 * Define if you want MMX optimizations in zaptel
38
 
 *
39
 
 * Note: CONFIG_ZAPTEL_MMX is generally incompatible with AMD 
40
 
 * processors and can cause system instability!
41
 
 * 
42
 
 */
43
 
/* #define CONFIG_ZAPTEL_MMX */
44
 
 
45
 
/*
46
 
 * Pick your echo canceller: MARK2, MARK3, STEVE, or STEVE2 :)
47
 
 * 
48
 
 */ 
49
 
/* #define ECHO_CAN_STEVE */
50
 
/* #define ECHO_CAN_STEVE2 */
51
 
/* #define ECHO_CAN_MARK */
52
 
/* #define ECHO_CAN_MARK2 */
53
 
/* #define ECHO_CAN_MARK3 */
54
 
#define ECHO_CAN_KB1
55
 
/* MG2 is a version of KB1 that has some changes to it that are
56
 
 * supposed to improve how it performs.  If you have echo problems,
57
 
 * try it out! */
58
 
/* #define ECHO_CAN_MG2 */
59
 
 
60
 
/*
61
 
 * Uncomment for aggressive residual echo supression under 
62
 
 * MARK2 echo canceller
63
 
 */
64
 
/* #define AGGRESSIVE_SUPPRESSOR */
65
 
 
66
 
/*
67
 
 * Define to turn off the echo canceler disable tone detector,
68
 
 * which will cause zaptel to ignore the 2100 Hz echo cancel disable
69
 
 * tone.
70
 
 */
71
 
/* #define NO_ECHOCAN_DISABLE */
72
 
 
73
 
/* udev support */
74
 
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,1)
75
 
#define CONFIG_ZAP_UDEV
76
 
#endif
77
 
 
78
 
/* We now use the linux kernel config to detect which options to use */
79
 
/* You can still override them below */
80
 
#if defined(CONFIG_HDLC) || defined(CONFIG_HDLC_MODULE)
81
 
/* #define CONFIG_ZAPATA_NET */  /* NEVER implicitly turn on ZAPATA_NET */
82
 
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,20)
83
 
#define CONFIG_OLD_HDLC_API
84
 
#else
85
 
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
86
 
/* Starting with 2.4.23 the kernel hdlc api changed again */
87
 
/* Now we have to use hdlc_type_trans(skb, dev) instead of htons(ETH_P_HDLC) */
88
 
#define ZAP_HDLC_TYPE_TRANS
89
 
#endif
90
 
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,3)
91
 
#define HDLC_MAINTAINERS_ARE_MORE_STUPID_THAN_I_THOUGHT
92
 
#endif
93
 
#endif
94
 
#endif
95
 
#ifdef CONFIG_PPP
96
 
#define CONFIG_ZAPATA_PPP
97
 
#endif
98
 
 
99
 
/*
100
 
 * Uncomment CONFIG_ZAPATA_NET to enable SyncPPP, CiscoHDLC, and Frame Relay
101
 
 * support.
102
 
 */
103
 
/* #define CONFIG_ZAPATA_NET */
104
 
 
105
 
/*
106
 
 * Uncomment CONFIG_OLD_HDLC_API if your are compiling with ZAPATA_NET
107
 
 * defined and you are using the old kernel HDLC interface (or if you get
108
 
 * an error about ETH_P_HDLC while compiling).
109
 
 */
110
 
/* #define CONFIG_OLD_HDLC_API */
111
 
 
112
 
/*
113
 
 * Uncomment for Generic PPP support (i.e. ZapRAS)
114
 
 */
115
 
/* #define CONFIG_ZAPATA_PPP */
116
 
/*
117
 
 * Uncomment to enable "watchdog" to monitor if interfaces
118
 
 * stop taking interrupts or otherwise misbehave
119
 
 */
120
 
/* #define CONFIG_ZAPTEL_WATCHDOG */
121
 
 
122
 
/* Tone zone info */
123
 
#define DEFAULT_TONE_ZONE 0
124
 
 
125
 
/*
126
 
 * Uncomment for Non-standard FXS groundstart start state (A=Low, B=Low)
127
 
 * particularly for CAC channel bank groundstart FXO ports.
128
 
 */
129
 
/* #define CONFIG_CAC_GROUNDSTART */
130
 
 
131
 
/* 
132
 
 * Uncomment if you happen have an early TDM400P Rev H which 
133
 
 * sometimes forgets its PCI ID to have wcfxs match essentially all
134
 
 * subvendor ID's
135
 
 */
136
 
/* #define TDM_REVH_MATCHALL */
137
 
 
138
 
/* 
139
 
 * Uncomment the following if you want to support E&M trunks being
140
 
 * able to "flash" after going off-hook (dont ask why, just nod :-) ).
141
 
 */
142
 
/* #define EMFLASH */
143
 
 
144
 
/* 
145
 
 * Comment out the following if you dont want events to indicate the
146
 
 * beginning of an incoming ring. Most non-Asterisk applications will
147
 
 * want this commented out.
148
 
 */
149
 
#define RINGBEGIN
150
 
 
151
 
/* 
152
 
 * Uncomment the following if you need to support FXS Flash events.
153
 
 * Most applications will want this commented out.
154
 
 */
155
 
/* #define FXSFLASH */
156
 
 
157
 
#endif