-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdevice_ff802.c
82 lines (78 loc) · 1.85 KB
/
device_ff802.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#include "device.h"
#define LEN(a) (sizeof (a) / sizeof *(a))
static const struct inputinfo inputs[] = {
{"Analog 1", INPUT_GAIN | INPUT_REFLEVEL},
{"Analog 2", INPUT_GAIN | INPUT_REFLEVEL},
{"Analog 3", INPUT_GAIN | INPUT_REFLEVEL},
{"Analog 4", INPUT_GAIN | INPUT_REFLEVEL},
{"Analog 5", INPUT_GAIN | INPUT_REFLEVEL},
{"Analog 6", INPUT_GAIN | INPUT_REFLEVEL},
{"Analog 7", INPUT_GAIN | INPUT_REFLEVEL},
{"Analog 8", INPUT_GAIN | INPUT_REFLEVEL},
{"Mic/Inst 9", INPUT_GAIN | INPUT_48V},
{"Mic/Inst 10", INPUT_GAIN | INPUT_48V},
{"Mic/Inst 11", INPUT_GAIN | INPUT_48V},
{"Mic/Inst 12", INPUT_GAIN | INPUT_48V},
{"AES L"},
{"AES R"},
{"ADAT 1"},
{"ADAT 2"},
{"ADAT 3"},
{"ADAT 4"},
{"ADAT 5"},
{"ADAT 6"},
{"ADAT 7"},
{"ADAT 8"},
{"ADAT 9"},
{"ADAT 10"},
{"ADAT 11"},
{"ADAT 12"},
{"ADAT 13"},
{"ADAT 14"},
{"ADAT 15"},
{"ADAT 16"},
};
_Static_assert(LEN(inputs) == 30, "bad inputs");
static const struct outputinfo outputs[] = {
{"Analog 1", OUTPUT_REFLEVEL},
{"Analog 2", OUTPUT_REFLEVEL},
{"Analog 3", OUTPUT_REFLEVEL},
{"Analog 4", OUTPUT_REFLEVEL},
{"Analog 5", OUTPUT_REFLEVEL},
{"Analog 6", OUTPUT_REFLEVEL},
{"Analog 7", OUTPUT_REFLEVEL},
{"Analog 8", OUTPUT_REFLEVEL},
{"Phones 9", OUTPUT_REFLEVEL},
{"Phones 10",OUTPUT_REFLEVEL},
{"Phones 11",OUTPUT_REFLEVEL},
{"Phones 12",OUTPUT_REFLEVEL},
{"AES L"},
{"AES R"},
{"ADAT 1"},
{"ADAT 2"},
{"ADAT 3"},
{"ADAT 4"},
{"ADAT 5"},
{"ADAT 6"},
{"ADAT 7"},
{"ADAT 8"},
{"ADAT 9"},
{"ADAT 10"},
{"ADAT 11"},
{"ADAT 12"},
{"ADAT 13"},
{"ADAT 14"},
{"ADAT 15"},
{"ADAT 16"},
};
_Static_assert(LEN(outputs) == 30, "bad outputs");
const struct device ff802 = {
.id = "ff802",
.name = "Fireface 802",
.version = 30,
// .flags = DEVICE_DUREC | DEVICE_ROOMEQ,
.inputs = inputs,
.inputslen = LEN(inputs),
.outputs = outputs,
.outputslen = LEN(outputs),
};