root/branches/work/qt4mixer/config.h.in

Revision 1046, 8.2 kB (checked in by ppalmers, 16 years ago)

debug message cleanup. move #defines into config.h.in.

Line 
1 /* config.h.in. */
2 #ifndef CONFIG_H
3 #define CONFIG_H
4
5 /* Name of package */
6 #define PACKAGE $PACKAGE
7
8 /* Define to the address where bug reports for this package should be sent. */
9 #define PACKAGE_BUGREPORT "<ffado-devel@lists.sf.net>"
10
11 /* Define to the full name of this package. */
12 #define PACKAGE_NAME "$PACKAGE"
13
14 /* Define to the full name and version of this package. */
15 #define PACKAGE_STRING "$PACKAGE $VERSION-$REVISION"
16
17 /* Define to the one symbol short name of this package. */
18 #define PACKAGE_TARNAME "$PACKAGE"
19
20 /* Define to the version of this package. */
21 #define PACKAGE_VERSION "$VERSION-$REVISION"
22
23 /* Define to the version of the cace. */
24 #define CACHE_VERSION "$VERSION-$REVISION"
25
26 /* Define to the api version */
27 #define FFADO_API_VERSION $FFADO_API_VERSION
28
29 #define CACHEDIR "~/.ffado"
30
31 #define BINDIR "$BINDIR"
32 #define LIBDIR "$LIBDIR"
33 #define SHAREDIR "$SHAREDIR"
34
35 /* Define indicating availability of lrint() */
36 #define HAVE_LRINT $HAVE_LRINT
37
38 /* Define indicatin availability of lrintf() */
39 #define HAVE_LRINTF $HAVE_LRINTF
40
41 // use a RT-safe message buffer for debug output
42 // useful to disable this when the code aborts/segfaults to
43 // not lose debug output. should be enabled though.
44 #define DEBUG_USE_MESSAGE_BUFFER             1
45 // max message length in the debug messagebuffer
46 #define DEBUG_MAX_MESSAGE_LENGTH           512
47 // number of messages in the debug messagebuffer (power of two)
48 #define DEBUG_MB_BUFFERS                  1024
49
50 // support a debug backlog
51 // note that this does not influence non-debug builds
52 #define DEBUG_BACKLOG_SUPPORT                0
53 // number of messages in the backlog buffer (power of two)
54 #define DEBUG_BACKLOG_MB_BUFFERS            64
55
56 // support backtrace debugging
57 // note that this does not influence non-debug builds
58 #define DEBUG_BACKTRACE_SUPPORT              0
59 // max length of backtrace
60 #define DEBUG_MAX_BACKTRACE_LENGTH           8
61 // max amount of function pointers to keep track of
62 #define DEBUG_MAX_BACKTRACE_FUNCTIONS_SEEN  64
63
64 // make this zero to disable the most extreme
65 // debug logging in the critical sections
66 #define DEBUG_EXTREME_ENABLE        0
67
68 // watchdog
69 #define WATCHDOG_DEFAULT_CHECK_INTERVAL_USECS   (1000*1000*4)
70 #define WATCHDOG_DEFAULT_RUN_REALTIME           1
71 #define WATCHDOG_DEFAULT_PRIORITY               98
72
73 // 1394 service constants
74 #define IEEE1394SERVICE_USE_CYCLETIMER_DLL  1
75 #define IEEE1394SERVICE_CYCLETIMER_DLL_UPDATE_INTERVAL_USEC 200000
76 #define IEEE1394SERVICE_MAX_FIREWIRE_PORTS  4
77
78 #define IEEE1394SERVICE_CYCLETIMER_HELPER_RUN_REALTIME    1
79 #define IEEE1394SERVICE_CYCLETIMER_HELPER_PRIO_INCREASE  -10
80
81 // The current version of libiec61883 doesn't seem to calculate
82 // the bandwidth correctly. Defining this to non-zero skips
83 // bandwidth allocation when doing CMP connections.
84 #define IEEE1394SERVICE_SKIP_IEC61883_BANDWIDTH_ALLOCATION 1
85
86 #define THREAD_MAX_RTPRIO                   98
87 #define THREAD_MIN_RTPRIO                   1
88
89 #define MINIMUM_INTERRUPTS_PER_PERIOD       2U
90
91 // These are the result of a lot of trial and error
92 // due to weirdness in the kernel layer
93 #define MAX_XMIT_PACKET_SIZE                (2048-16)
94 #define MAX_XMIT_NB_BUFFERS                 200
95
96 #define ISOHANDLER_FLUSH_BEFORE_ITERATE     0
97
98 #define ISOHANDLER_DEATH_DETECT_TIMEOUT_USECS    1000000LL
99
100 #define ISOHANDLER_CHECK_CTR_RECONSTRUCTION 0
101
102 #define ISOHANDLERMANAGER_MAX_ISO_HANDLERS_PER_PORT         16
103 #define ISOHANDLERMANAGER_MAX_STREAMS_PER_ISOTHREAD         16
104
105 // The best setup is if the receive handlers have lower priority
106 // than the client thread since that ensures that as soon as we
107 // received sufficient frames, the client thread runs.
108 // The transmit thread should have higher priority to ensure that
109 // all available data is flushed to the ISO kernel buffers as
110 // soon as possible
111 // At this moment, the jack backend uses base+5 to init ffado
112 // prio
113 #define ISOHANDLERMANAGER_ISO_PRIO_INCREASE                  0
114 #define ISOHANDLERMANAGER_ISO_PRIO_INCREASE_RECV            -6
115 #define ISOHANDLERMANAGER_ISO_PRIO_INCREASE_XMIT             1
116
117 // the timeout for ISO activity on any thread
118 // NOTE: don't make this 0
119 #define ISOHANDLERMANAGER_ISO_TASK_WAIT_TIMEOUT_USECS        1000000LL
120
121 // allows to add some processing margin. This shifts the time
122 // at which the buffer is transfer()'ed, making things somewhat
123 // more robust. It should be noted though that shifting the transfer
124 // time to a later time instant also causes the xmit buffer fill to be
125 // lower on average.
126 #define STREAMPROCESSORMANAGER_SIGNAL_DELAY_TICKS           (3072*6)
127
128 // startup control
129 #define STREAMPROCESSORMANAGER_CYCLES_FOR_DRYRUN            40000
130 #define STREAMPROCESSORMANAGER_CYCLES_FOR_STARTUP           200
131 #define STREAMPROCESSORMANAGER_PRESTART_CYCLES_FOR_XMIT     20
132 #define STREAMPROCESSORMANAGER_PRESTART_CYCLES_FOR_RECV     0
133 #define STREAMPROCESSORMANAGER_SYNCSTART_TRIES              10
134 #define STREAMPROCESSORMANAGER_SYNC_WAIT_TIME_MSEC          200
135 #define STREAMPROCESSORMANAGER_ALIGN_AVERAGE_TIME_MSEC      400
136 #define STREAMPROCESSORMANAGER_NB_ALIGN_TRIES               40
137
138 #define STREAMPROCESSORMANAGER_DYNAMIC_SYNC_DELAY           0
139
140 // FIXME: note that it will probably be better to use a DLL bandwidth that is
141 //        dependant on the sample rate
142 #define TIMESTAMPEDBUFFER_DLL_BANDWIDTH                     (0.01)
143
144 // -- AMDTP options -- //
145
146 // in ticks
147 // as per AMDTP2.1:
148 // 354.17us + 125us @ 24.576ticks/usec = 11776.08192 ticks
149 #define AMDTP_TRANSMIT_TRANSFER_DELAY   (11776U)
150
151 // the absolute minimum number of cycles we want to transmit
152 // a packet ahead of the presentation time. The nominal time
153 // the packet is transmitted ahead of the presentation time is
154 // given by AMDTP_TRANSMIT_TRANSFER_DELAY (in ticks), but in case we
155 // are too late for that, this constant defines how late we can
156 // be.
157 #define AMDTP_MIN_CYCLES_BEFORE_PRESENTATION                1
158
159 // the absolute maximum number of cycles we want to transmit
160 // a packet ahead of the ideal transmit time. The nominal time
161 // the packet is transmitted ahead of the presentation time is
162 // given by AMDTP_TRANSMIT_TRANSFER_DELAY (in ticks), but we can send
163 // packets early if we want to. (not completely according to spec)
164 // (for spec compliance you need to specify a value of 1 or 2)
165 #define AMDTP_MAX_CYCLES_TO_TRANSMIT_EARLY                  2
166
167 // ensure that the AMDTP SP clips all float values to [-1.0..1.0]
168 #define AMDTP_CLIP_FLOATS                                   1
169
170 // Allow that devices request that the AMDTP transmit SP adds
171 // payload to the NO-DATA packets.
172 #define AMDTP_ALLOW_PAYLOAD_IN_NODATA_XMIT                  1
173
174 // Default setting for the payload setting if
175 // AMDTP_ALLOW_PAYLOAD_IN_NODATA_XMIT is enabled. Devices can
176 // explicity override this
177 #define AMDTP_SEND_PAYLOAD_IN_NODATA_XMIT_BY_DEFAULT    true
178
179 // -- MOTU options -- //
180
181 // the transfer delay is substracted from the ideal presentation
182 // time to obtain a corrected presentation time. This values is
183 // then used to stamp the packet and determine the transmission
184 // time instant.
185 //#define MOTU_TRANSMIT_TRANSFER_DELAY    (11776U)
186 //#define MOTU_TRANSMIT_TRANSFER_DELAY    (3072U)
187 #define MOTU_TRANSMIT_TRANSFER_DELAY    (0U)
188
189 // the absolute minimum number of cycles we want to transmit
190 // a packet ahead of the presentation time. The nominal time
191 // the packet is transmitted ahead of the presentation time is
192 // given by MOTU_TRANSMIT_TRANSFER_DELAY (in ticks), but in case we
193 // are too late for that, this constant defines how late we can
194 // be.
195 #define MOTU_MIN_CYCLES_BEFORE_PRESENTATION                0
196
197 // the absolute maximum number of cycles we want to transmit
198 // a packet ahead of the ideal transmit time. The nominal time
199 // the packet is transmitted ahead of the presentation time is
200 // given by MOTU_TRANSMIT_TRANSFER_DELAY (in ticks), but we can send
201 // packets early if we want to.
202 //#define MOTU_MAX_CYCLES_TO_TRANSMIT_EARLY                  6
203 #define MOTU_MAX_CYCLES_TO_TRANSMIT_EARLY                  2
204
205 // ensure that the MOTU tx SP clips all float values to [-1.0..1.0]
206 #define MOTU_CLIP_FLOATS                                   1
207
208 /// The unavoidable device specific hacks
209
210 // Use the information in the music plug instead of that in the
211 // cluster info block for the stream configuration. Should not
212 // be necessary
213 #define AVC_STREAMCONFIG_USE_MUSICPLUG 0
214
215 #endif // CONFIG_H
Note: See TracBrowser for help on using the browser.