root/trunk/libffado/config.h.in

Revision 862, 3.8 kB (checked in by ppalmers, 13 years ago)

fix xrun recovery and robustify

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 to 1 if SSE assembly is available. */
30 // broken
31 //#define USE_SSE $USE_SSE
32 #define USE_SSE 0
33 //#define USE_SSE2 $USE_SSE2
34 #define USE_SSE2 0
35
36 #define CACHEDIR "~/.ffado"
37
38 #define BINDIR "$BINDIR"
39 #define LIBDIR "$LIBDIR"
40 #define SHAREDIR "$SHAREDIR"
41
42 #define DEBUG_IMPLEMENT_BACKLOG 0
43
44 #define IEEE1394SERVICE_USE_CYCLETIMER_DLL  0
45 #define IEEE1394SERVICE_MAX_FIREWIRE_PORTS  16
46
47 #define IEEE1394SERVICE_ISOMANAGER_PRIO_INCREASE         0
48 #define IEEE1394SERVICE_CYCLETIMER_HELPER_PRIO_INCREASE  5
49
50 #define THREAD_MAX_RTPRIO                   98
51 #define THREAD_MIN_RTPRIO                   0
52
53 #define MINIMUM_INTERRUPTS_PER_PERIOD       2U
54 #define MAX_ISO_XMIT_BUFFER_FILL_PCT        50
55
56 #define ISOHANDLER_PER_HANDLER_THREAD       0
57 #define ISOHANDLER_USE_POLL                 0
58 #define ISOHANDLER_FLUSH_BEFORE_ITERATE     0
59
60 #define ISOHANDLERMANAGER_MAX_ISO_HANDLERS_PER_PORT         16
61
62 // allows to add some processing margin. This shifts the time
63 // at which the buffer is transfer()'ed, making things somewhat
64 // more robust. It should be noted though that shifting the transfer
65 // time to a later time instant also causes the xmit buffer fill to be
66 // lower on average.
67 #define STREAMPROCESSORMANAGER_SIGNAL_DELAY_TICKS           (3072*6)
68
69 #define STREAMPROCESSORMANAGER_CYCLES_FOR_DRYRUN            40000
70 #define STREAMPROCESSORMANAGER_CYCLES_FOR_STARTUP           2000
71 #define STREAMPROCESSORMANAGER_PRESTART_CYCLES_FOR_XMIT     20
72 #define STREAMPROCESSORMANAGER_PRESTART_CYCLES_FOR_RECV     0
73 #define STREAMPROCESSORMANAGER_SYNCSTART_TRIES              10
74 #define STREAMPROCESSORMANAGER_SYNC_WAIT_TIME_MSEC          200
75 #define STREAMPROCESSORMANAGER_ALIGN_AVERAGE_TIME_MSEC      200
76 #define STREAMPROCESSORMANAGER_NB_ALIGN_TRIES               40
77
78 #define STREAMPROCESSORMANAGER_DYNAMIC_SYNC_DELAY           0
79
80 // FIXME: note that it will probably be better to use a DLL bandwidth that is
81 //        dependant on the sample rate
82 #define TIMESTAMPEDBUFFER_DLL_BANDWIDTH                     (0.01)
83
84 // in ticks
85 // as per AMDTP2.1:
86 // 354.17us + 125us @ 24.576ticks/usec = 11776.08192 ticks
87 #define AMDTP_TRANSMIT_TRANSFER_DELAY   (11776U)
88
89 // the absolute minimum number of cycles we want to transmit
90 // a packet ahead of the presentation time. The nominal time
91 // the packet is transmitted ahead of the presentation time is
92 // given by AMDTP_TRANSMIT_TRANSFER_DELAY (in ticks), but in case we
93 // are too late for that, this constant defines how late we can
94 // be.
95 #define AMDTP_MIN_CYCLES_BEFORE_PRESENTATION                1
96
97 // the absolute maximum number of cycles we want to transmit
98 // a packet ahead of the ideal transmit time. The nominal time
99 // the packet is transmitted ahead of the presentation time is
100 // given by AMDTP_TRANSMIT_TRANSFER_DELAY (in ticks), but we can send
101 // packets early if we want to. (not completely according to spec)
102 // (for spec compliance you need to specify a value of 1 or 2)
103 #define AMDTP_MAX_CYCLES_TO_TRANSMIT_EARLY                  6
104
105 #define MOTU_TRANSMIT_TRANSFER_DELAY    (11776U)
106
107 #endif // CONFIG_H
Note: See TracBrowser for help on using the browser.