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 DEBUG_IMPLEMENT_BACKLOG 0 |
---|
36 |
|
---|
37 |
// make this zero to disable the most extreme |
---|
38 |
// debug logging in the critical sections |
---|
39 |
#define DEBUG_EXTREME_ENABLE 0 |
---|
40 |
|
---|
41 |
#define IEEE1394SERVICE_USE_CYCLETIMER_DLL 1 |
---|
42 |
#define IEEE1394SERVICE_CYCLETIMER_DLL_UPDATE_INTERVAL_USEC 200000 |
---|
43 |
#define IEEE1394SERVICE_MAX_FIREWIRE_PORTS 16 |
---|
44 |
|
---|
45 |
#define IEEE1394SERVICE_CYCLETIMER_HELPER_RUN_REALTIME 0 |
---|
46 |
#define IEEE1394SERVICE_CYCLETIMER_HELPER_PRIO_INCREASE -5 |
---|
47 |
|
---|
48 |
#define THREAD_MAX_RTPRIO 98 |
---|
49 |
#define THREAD_MIN_RTPRIO 0 |
---|
50 |
|
---|
51 |
#define MINIMUM_INTERRUPTS_PER_PERIOD 4U |
---|
52 |
|
---|
53 |
// These are the result of a lot of trial and error |
---|
54 |
// due to weirdness in the kernel layer |
---|
55 |
#define MAX_XMIT_PACKET_SIZE (2048-16) |
---|
56 |
#define MAX_XMIT_NB_BUFFERS 40 |
---|
57 |
|
---|
58 |
#define ISOHANDLER_FLUSH_BEFORE_ITERATE 0 |
---|
59 |
|
---|
60 |
#define ISOHANDLER_DEATH_DETECT_TIMEOUT_USECS 1000000LL |
---|
61 |
|
---|
62 |
#define ISOHANDLERMANAGER_MAX_ISO_HANDLERS_PER_PORT 16 |
---|
63 |
#define ISOHANDLERMANAGER_MAX_STREAMS_PER_ISOTHREAD 16 |
---|
64 |
#define ISOHANDLERMANAGER_TRANSMIT_PRIO_INCREASE 1 |
---|
65 |
#define ISOHANDLERMANAGER_RECEIVE_PRIO_INCREASE 0 |
---|
66 |
|
---|
67 |
// allows to add some processing margin. This shifts the time |
---|
68 |
// at which the buffer is transfer()'ed, making things somewhat |
---|
69 |
// more robust. It should be noted though that shifting the transfer |
---|
70 |
// time to a later time instant also causes the xmit buffer fill to be |
---|
71 |
// lower on average. |
---|
72 |
#define STREAMPROCESSORMANAGER_SIGNAL_DELAY_TICKS (3072*6) |
---|
73 |
|
---|
74 |
#define STREAMPROCESSORMANAGER_CYCLES_FOR_DRYRUN 40000 |
---|
75 |
#define STREAMPROCESSORMANAGER_CYCLES_FOR_STARTUP 200 |
---|
76 |
#define STREAMPROCESSORMANAGER_PRESTART_CYCLES_FOR_XMIT 20 |
---|
77 |
#define STREAMPROCESSORMANAGER_PRESTART_CYCLES_FOR_RECV 0 |
---|
78 |
#define STREAMPROCESSORMANAGER_SYNCSTART_TRIES 10 |
---|
79 |
#define STREAMPROCESSORMANAGER_SYNC_WAIT_TIME_MSEC 200 |
---|
80 |
#define STREAMPROCESSORMANAGER_ALIGN_AVERAGE_TIME_MSEC 200 |
---|
81 |
#define STREAMPROCESSORMANAGER_NB_ALIGN_TRIES 40 |
---|
82 |
|
---|
83 |
#define STREAMPROCESSORMANAGER_DYNAMIC_SYNC_DELAY 0 |
---|
84 |
|
---|
85 |
// FIXME: note that it will probably be better to use a DLL bandwidth that is |
---|
86 |
// dependant on the sample rate |
---|
87 |
#define TIMESTAMPEDBUFFER_DLL_BANDWIDTH (0.01) |
---|
88 |
|
---|
89 |
// -- AMDTP options -- // |
---|
90 |
|
---|
91 |
// in ticks |
---|
92 |
// as per AMDTP2.1: |
---|
93 |
// 354.17us + 125us @ 24.576ticks/usec = 11776.08192 ticks |
---|
94 |
#define AMDTP_TRANSMIT_TRANSFER_DELAY (11776U) |
---|
95 |
|
---|
96 |
// the absolute minimum number of cycles we want to transmit |
---|
97 |
// a packet ahead of the presentation time. The nominal time |
---|
98 |
// the packet is transmitted ahead of the presentation time is |
---|
99 |
// given by AMDTP_TRANSMIT_TRANSFER_DELAY (in ticks), but in case we |
---|
100 |
// are too late for that, this constant defines how late we can |
---|
101 |
// be. |
---|
102 |
#define AMDTP_MIN_CYCLES_BEFORE_PRESENTATION 1 |
---|
103 |
|
---|
104 |
// the absolute maximum number of cycles we want to transmit |
---|
105 |
// a packet ahead of the ideal transmit time. The nominal time |
---|
106 |
// the packet is transmitted ahead of the presentation time is |
---|
107 |
// given by AMDTP_TRANSMIT_TRANSFER_DELAY (in ticks), but we can send |
---|
108 |
// packets early if we want to. (not completely according to spec) |
---|
109 |
// (for spec compliance you need to specify a value of 1 or 2) |
---|
110 |
#define AMDTP_MAX_CYCLES_TO_TRANSMIT_EARLY 6 |
---|
111 |
|
---|
112 |
// ensure that the AMDTP SP clips all float values to [-1.0..1.0] |
---|
113 |
#define AMDTP_CLIP_FLOATS 1 |
---|
114 |
|
---|
115 |
// -- MOTU options -- // |
---|
116 |
|
---|
117 |
// the transfer delay is substracted from the ideal presentation |
---|
118 |
// time to obtain a corrected presentation time. This values is |
---|
119 |
// then used to stamp the packet and determine the transmission |
---|
120 |
// time instant. |
---|
121 |
#define MOTU_TRANSMIT_TRANSFER_DELAY (11776U) |
---|
122 |
|
---|
123 |
// the absolute minimum number of cycles we want to transmit |
---|
124 |
// a packet ahead of the presentation time. The nominal time |
---|
125 |
// the packet is transmitted ahead of the presentation time is |
---|
126 |
// given by MOTU_TRANSMIT_TRANSFER_DELAY (in ticks), but in case we |
---|
127 |
// are too late for that, this constant defines how late we can |
---|
128 |
// be. |
---|
129 |
#define MOTU_MIN_CYCLES_BEFORE_PRESENTATION 1 |
---|
130 |
|
---|
131 |
// the absolute maximum number of cycles we want to transmit |
---|
132 |
// a packet ahead of the ideal transmit time. The nominal time |
---|
133 |
// the packet is transmitted ahead of the presentation time is |
---|
134 |
// given by MOTU_TRANSMIT_TRANSFER_DELAY (in ticks), but we can send |
---|
135 |
// packets early if we want to. |
---|
136 |
#define MOTU_MAX_CYCLES_TO_TRANSMIT_EARLY 6 |
---|
137 |
|
---|
138 |
#endif // CONFIG_H |
---|