root/trunk/libffado/config.h.in

Revision 1040, 7.4 kB (checked in by ppalmers, 16 years ago)

lower number of interrupts generated. remove leftover debug line

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 #define DEBUG_IMPLEMENT_BACKLOG     0
42
43 // make this zero to disable the most extreme
44 // debug logging in the critical sections
45 #define DEBUG_EXTREME_ENABLE        0
46
47 // use a RT-safe message buffer for debug output
48 // useful to disable this when the code aborts/segfaults to
49 // not lose debug output. should be enabled though.
50 #define DEBUG_USE_MESSAGE_BUFFER    1
51
52 // watchdog
53 #define WATCHDOG_DEFAULT_CHECK_INTERVAL_USECS   (1000*1000*4)
54 #define WATCHDOG_DEFAULT_RUN_REALTIME           1
55 #define WATCHDOG_DEFAULT_PRIORITY               98
56
57 // 1394 service constants
58 #define IEEE1394SERVICE_USE_CYCLETIMER_DLL  1
59 #define IEEE1394SERVICE_CYCLETIMER_DLL_UPDATE_INTERVAL_USEC 200000
60 #define IEEE1394SERVICE_MAX_FIREWIRE_PORTS  4
61
62 #define IEEE1394SERVICE_CYCLETIMER_HELPER_RUN_REALTIME    1
63 #define IEEE1394SERVICE_CYCLETIMER_HELPER_PRIO_INCREASE  -10
64
65 // The current version of libiec61883 doesn't seem to calculate
66 // the bandwidth correctly. Defining this to non-zero skips
67 // bandwidth allocation when doing CMP connections.
68 #define IEEE1394SERVICE_SKIP_IEC61883_BANDWIDTH_ALLOCATION 1
69
70 #define THREAD_MAX_RTPRIO                   98
71 #define THREAD_MIN_RTPRIO                   1
72
73 #define MINIMUM_INTERRUPTS_PER_PERIOD       2U
74
75 // These are the result of a lot of trial and error
76 // due to weirdness in the kernel layer
77 #define MAX_XMIT_PACKET_SIZE                (2048-16)
78 #define MAX_XMIT_NB_BUFFERS                 200
79
80 #define ISOHANDLER_FLUSH_BEFORE_ITERATE     0
81
82 #define ISOHANDLER_DEATH_DETECT_TIMEOUT_USECS    1000000LL
83
84 #define ISOHANDLER_CHECK_CTR_RECONSTRUCTION 0
85
86 #define ISOHANDLERMANAGER_MAX_ISO_HANDLERS_PER_PORT         16
87 #define ISOHANDLERMANAGER_MAX_STREAMS_PER_ISOTHREAD         16
88
89 // The best setup is if the receive handlers have lower priority
90 // than the client thread since that ensures that as soon as we
91 // received sufficient frames, the client thread runs.
92 // The transmit thread should have higher priority to ensure that
93 // all available data is flushed to the ISO kernel buffers as
94 // soon as possible
95 // At this moment, the jack backend uses base+5 to init ffado
96 // prio
97 #define ISOHANDLERMANAGER_ISO_PRIO_INCREASE                  0
98 #define ISOHANDLERMANAGER_ISO_PRIO_INCREASE_RECV            -6
99 #define ISOHANDLERMANAGER_ISO_PRIO_INCREASE_XMIT             1
100
101 // the timeout for ISO activity on any thread
102 // NOTE: don't make this 0
103 #define ISOHANDLERMANAGER_ISO_TASK_WAIT_TIMEOUT_USECS        1000000LL
104
105 // allows to add some processing margin. This shifts the time
106 // at which the buffer is transfer()'ed, making things somewhat
107 // more robust. It should be noted though that shifting the transfer
108 // time to a later time instant also causes the xmit buffer fill to be
109 // lower on average.
110 #define STREAMPROCESSORMANAGER_SIGNAL_DELAY_TICKS           (3072*6)
111
112 // startup control
113 #define STREAMPROCESSORMANAGER_CYCLES_FOR_DRYRUN            40000
114 #define STREAMPROCESSORMANAGER_CYCLES_FOR_STARTUP           200
115 #define STREAMPROCESSORMANAGER_PRESTART_CYCLES_FOR_XMIT     20
116 #define STREAMPROCESSORMANAGER_PRESTART_CYCLES_FOR_RECV     0
117 #define STREAMPROCESSORMANAGER_SYNCSTART_TRIES              10
118 #define STREAMPROCESSORMANAGER_SYNC_WAIT_TIME_MSEC          200
119 #define STREAMPROCESSORMANAGER_ALIGN_AVERAGE_TIME_MSEC      400
120 #define STREAMPROCESSORMANAGER_NB_ALIGN_TRIES               40
121
122 #define STREAMPROCESSORMANAGER_DYNAMIC_SYNC_DELAY           0
123
124 // FIXME: note that it will probably be better to use a DLL bandwidth that is
125 //        dependant on the sample rate
126 #define TIMESTAMPEDBUFFER_DLL_BANDWIDTH                     (0.01)
127
128 // -- AMDTP options -- //
129
130 // in ticks
131 // as per AMDTP2.1:
132 // 354.17us + 125us @ 24.576ticks/usec = 11776.08192 ticks
133 #define AMDTP_TRANSMIT_TRANSFER_DELAY   (11776U)
134
135 // the absolute minimum number of cycles we want to transmit
136 // a packet ahead of the presentation time. The nominal time
137 // the packet is transmitted ahead of the presentation time is
138 // given by AMDTP_TRANSMIT_TRANSFER_DELAY (in ticks), but in case we
139 // are too late for that, this constant defines how late we can
140 // be.
141 #define AMDTP_MIN_CYCLES_BEFORE_PRESENTATION                1
142
143 // the absolute maximum number of cycles we want to transmit
144 // a packet ahead of the ideal transmit time. The nominal time
145 // the packet is transmitted ahead of the presentation time is
146 // given by AMDTP_TRANSMIT_TRANSFER_DELAY (in ticks), but we can send
147 // packets early if we want to. (not completely according to spec)
148 // (for spec compliance you need to specify a value of 1 or 2)
149 #define AMDTP_MAX_CYCLES_TO_TRANSMIT_EARLY                  2
150
151 // ensure that the AMDTP SP clips all float values to [-1.0..1.0]
152 #define AMDTP_CLIP_FLOATS                                   1
153
154 // Allow that devices request that the AMDTP transmit SP adds
155 // payload to the NO-DATA packets.
156 #define AMDTP_ALLOW_PAYLOAD_IN_NODATA_XMIT                  1
157
158 // Default setting for the payload setting if
159 // AMDTP_ALLOW_PAYLOAD_IN_NODATA_XMIT is enabled. Devices can
160 // explicity override this
161 #define AMDTP_SEND_PAYLOAD_IN_NODATA_XMIT_BY_DEFAULT    true
162
163 // -- MOTU options -- //
164
165 // the transfer delay is substracted from the ideal presentation
166 // time to obtain a corrected presentation time. This values is
167 // then used to stamp the packet and determine the transmission
168 // time instant.
169 //#define MOTU_TRANSMIT_TRANSFER_DELAY    (11776U)
170 //#define MOTU_TRANSMIT_TRANSFER_DELAY    (3072U)
171 #define MOTU_TRANSMIT_TRANSFER_DELAY    (0U)
172
173 // the absolute minimum number of cycles we want to transmit
174 // a packet ahead of the presentation time. The nominal time
175 // the packet is transmitted ahead of the presentation time is
176 // given by MOTU_TRANSMIT_TRANSFER_DELAY (in ticks), but in case we
177 // are too late for that, this constant defines how late we can
178 // be.
179 #define MOTU_MIN_CYCLES_BEFORE_PRESENTATION                0
180
181 // the absolute maximum number of cycles we want to transmit
182 // a packet ahead of the ideal transmit time. The nominal time
183 // the packet is transmitted ahead of the presentation time is
184 // given by MOTU_TRANSMIT_TRANSFER_DELAY (in ticks), but we can send
185 // packets early if we want to.
186 //#define MOTU_MAX_CYCLES_TO_TRANSMIT_EARLY                  6
187 #define MOTU_MAX_CYCLES_TO_TRANSMIT_EARLY                  2
188
189 // ensure that the MOTU tx SP clips all float values to [-1.0..1.0]
190 #define MOTU_CLIP_FLOATS                                   1
191
192 /// The unavoidable device specific hacks
193
194 // specify this to 1 for ECHO audio firmwares older than v4.3
195 #define AVC_STREAMPOSITION_USE_MUSICPLUG 0
196
197 #endif // CONFIG_H
Note: See TracBrowser for help on using the browser.