root/trunk/libffado/config.h.in

Revision 1336, 6.9 kB (checked in by ppalmers, 12 years ago)

Bring trunk up to date with branches/libffado-2.0:

"""
svn merge -r 1254:1299 svn+ssh://ffadosvn@ffado.org/ffado/branches/libffado-2.0
svn merge -r 1301:1320 svn+ssh://ffadosvn@ffado.org/ffado/branches/libffado-2.0
svn merge -r 1322:1323 svn+ssh://ffadosvn@ffado.org/ffado/branches/libffado-2.0
svn merge -r 1329:HEAD svn+ssh://ffadosvn@ffado.org/ffado/branches/libffado-2.0
"""

Add getSupportedSamplingFrequencies() to DICE, RME and Metric Halo AvDevices?

Line 
1 /* config.h.in. */
2 #ifndef CONFIG_H
3 #define CONFIG_H
4
5 #define BINDIR "$BINDIR"
6 #define LIBDIR "$LIBDIR"
7 #define SHAREDIR "$SHAREDIR"
8
9 /* configuration file locations */
10 #define USER_CONFIG_FILE    "$USER_CONFIG_FILE"
11 #define SYSTEM_CONFIG_FILE  "$SYSTEM_CONFIG_FILE"
12
13 /* Define indicating availability of lrint() */
14 #define HAVE_LRINT $HAVE_LRINT
15
16 /* Define indicatin availability of lrintf() */
17 #define HAVE_LRINTF $HAVE_LRINTF
18
19 // serialization
20 #define SERIALIZE_USE_EXPAT $SERIALIZE_USE_EXPAT
21
22 #define CACHEDIR "$CACHEDIR"
23
24 // discovery
25 #define ENABLE_DISCOVERY_CACHE               1
26
27 // watchdog
28 #define WATCHDOG_DEFAULT_CHECK_INTERVAL_USECS   (1000*1000*4)
29 #define WATCHDOG_DEFAULT_RUN_REALTIME           1
30 #define WATCHDOG_DEFAULT_PRIORITY               98
31
32 // threading
33 #define THREAD_MAX_RTPRIO                   98
34 #define THREAD_MIN_RTPRIO                   1
35
36 // time
37
38 // we should be using absolute clock_nanosleep
39 // but on my system it causes a problem on shutdown.
40 #define USE_ABSOLUTE_NANOSLEEP              1
41
42 // 1394 service constants
43 #define IEEE1394SERVICE_USE_CYCLETIMER_DLL                         1
44 #define IEEE1394SERVICE_CYCLETIMER_DLL_UPDATE_INTERVAL_USEC   200000
45 #define IEEE1394SERVICE_MAX_FIREWIRE_PORTS                         4
46
47 #define IEEE1394SERVICE_CYCLETIMER_HELPER_RUN_REALTIME       1
48 #define IEEE1394SERVICE_CYCLETIMER_HELPER_PRIO_INCREASE    -10
49
50 // config rom read wait interval
51 #define IEEE1394SERVICE_CONFIGROM_READ_WAIT_USECS         1000
52
53
54 // The current version of libiec61883 doesn't seem to calculate
55 // the bandwidth correctly. Defining this to non-zero skips
56 // bandwidth allocation when doing CMP connections.
57 #define IEEE1394SERVICE_SKIP_IEC61883_BANDWIDTH_ALLOCATION   1
58
59 #define MINIMUM_INTERRUPTS_PER_PERIOD                       2U
60
61 // These are the result of a lot of trial and error
62 // due to weirdness in the kernel layer
63 #define MAX_XMIT_PACKET_SIZE                         (2048-16)
64 #define MAX_XMIT_NB_BUFFERS                                200
65
66 #define ISOHANDLER_FLUSH_BEFORE_ITERATE                      0
67
68 #define ISOHANDLER_DEATH_DETECT_TIMEOUT_USECS        1000000LL
69
70 #define ISOHANDLER_CHECK_CTR_RECONSTRUCTION                  0
71
72 #define ISOHANDLERMANAGER_MAX_ISO_HANDLERS_PER_PORT         16
73 #define ISOHANDLERMANAGER_MAX_STREAMS_PER_ISOTHREAD         16
74
75 // The best setup is if the receive handlers have lower priority
76 // than the client thread since that ensures that as soon as we
77 // received sufficient frames, the client thread runs.
78 // The transmit thread should have higher priority to ensure that
79 // all available data is flushed to the ISO kernel buffers as
80 // soon as possible
81 // At this moment, the jack backend uses base+5 to init ffado
82 // prio
83 #define ISOHANDLERMANAGER_ISO_PRIO_INCREASE                  0
84 #define ISOHANDLERMANAGER_ISO_PRIO_INCREASE_RECV            -6
85 #define ISOHANDLERMANAGER_ISO_PRIO_INCREASE_XMIT             1
86
87 // the timeout for ISO activity on any thread
88 // NOTE: don't make this 0
89 #define ISOHANDLERMANAGER_ISO_TASK_WAIT_TIMEOUT_USECS        1000000LL
90
91 // allows to add some processing margin. This shifts the time
92 // at which the buffer is transfer()'ed, making things somewhat
93 // more robust. It should be noted though that shifting the transfer
94 // time to a later time instant also causes the xmit buffer fill to be
95 // lower on average.
96 #define STREAMPROCESSORMANAGER_SIGNAL_DELAY_TICKS           (3072*6)
97
98 // startup control
99 #define STREAMPROCESSORMANAGER_CYCLES_FOR_DRYRUN            40000
100 #define STREAMPROCESSORMANAGER_CYCLES_FOR_STARTUP           200
101 #define STREAMPROCESSORMANAGER_PRESTART_CYCLES_FOR_XMIT     20
102 #define STREAMPROCESSORMANAGER_PRESTART_CYCLES_FOR_RECV     0
103 #define STREAMPROCESSORMANAGER_SYNCSTART_TRIES              10
104 #define STREAMPROCESSORMANAGER_SYNC_WAIT_TIME_MSEC          200
105 #define STREAMPROCESSORMANAGER_ALIGN_AVERAGE_TIME_MSEC      400
106 #define STREAMPROCESSORMANAGER_NB_ALIGN_TRIES               40
107
108 #define STREAMPROCESSORMANAGER_DYNAMIC_SYNC_DELAY           0
109
110 // FIXME: note that it will probably be better to use a DLL bandwidth that is
111 //        dependant on the sample rate
112 #define TIMESTAMPEDBUFFER_DLL_BANDWIDTH                     (0.01)
113
114 // -- AMDTP options -- //
115
116 // in ticks
117 // as per AMDTP2.1:
118 // 354.17us + 125us @ 24.576ticks/usec = 11776.08192 ticks
119 #define AMDTP_TRANSMIT_TRANSFER_DELAY   (11776U)
120
121 // the absolute minimum number of cycles we want to transmit
122 // a packet ahead of the presentation time. The nominal time
123 // the packet is transmitted ahead of the presentation time is
124 // given by AMDTP_TRANSMIT_TRANSFER_DELAY (in ticks), but in case we
125 // are too late for that, this constant defines how late we can
126 // be.
127 #define AMDTP_MIN_CYCLES_BEFORE_PRESENTATION                1
128
129 // the absolute maximum number of cycles we want to transmit
130 // a packet ahead of the ideal transmit time. The nominal time
131 // the packet is transmitted ahead of the presentation time is
132 // given by AMDTP_TRANSMIT_TRANSFER_DELAY (in ticks), but we can send
133 // packets early if we want to. (not completely according to spec)
134 // (for spec compliance you need to specify a value of 0)
135 #define AMDTP_MAX_CYCLES_TO_TRANSMIT_EARLY                  1
136
137 // ensure that the AMDTP SP clips all float values to [-1.0..1.0]
138 #define AMDTP_CLIP_FLOATS                                   1
139
140 // Allow that devices request that the AMDTP transmit SP adds
141 // payload to the NO-DATA packets.
142 #define AMDTP_ALLOW_PAYLOAD_IN_NODATA_XMIT                  1
143
144 // Default setting for the payload setting if
145 // AMDTP_ALLOW_PAYLOAD_IN_NODATA_XMIT is enabled. Devices can
146 // explicity override this
147 #define AMDTP_SEND_PAYLOAD_IN_NODATA_XMIT_BY_DEFAULT     true
148
149 // -- MOTU options -- //
150
151 // the transfer delay is substracted from the ideal presentation
152 // time to obtain a corrected presentation time. This values is
153 // then used to stamp the packet and determine the transmission
154 // time instant.
155 #define MOTU_TRANSMIT_TRANSFER_DELAY    (0U)
156
157 // the absolute minimum number of cycles we want to transmit
158 // a packet ahead of the presentation time. The nominal time
159 // the packet is transmitted ahead of the presentation time is
160 // given by MOTU_TRANSMIT_TRANSFER_DELAY (in ticks), but in case we
161 // are too late for that, this constant defines how late we can
162 // be.
163 #define MOTU_MIN_CYCLES_BEFORE_PRESENTATION                0
164
165 // the absolute maximum number of cycles we want to transmit
166 // a packet ahead of the ideal transmit time. The nominal time
167 // the packet is transmitted ahead of the presentation time is
168 // given by MOTU_TRANSMIT_TRANSFER_DELAY (in ticks), but we can send
169 // packets early if we want to.
170 #define MOTU_MAX_CYCLES_TO_TRANSMIT_EARLY                  2
171
172 // ensure that the MOTU tx SP clips all float values to [-1.0..1.0]
173 #define MOTU_CLIP_FLOATS                                   1
174
175 /// The unavoidable device specific hacks
176
177 // Use the information in the music plug instead of that in the
178 // cluster info block for the stream configuration. Should not
179 // be necessary
180 #define AVC_STREAMCONFIG_USE_MUSICPLUG                     0
181
182 #endif // CONFIG_H
Note: See TracBrowser for help on using the browser.