Skip to content

Commit d18dfee

Browse files
committed
feat: add support for Scarlett 3rd-gen 4i4
1 parent a29c0a2 commit d18dfee

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Currently supported models, first generation of
99

1010
third generation of
1111
- 8i6
12+
- 4i4
1213

1314
This is just a GUI, the device **must** be supported by the ALSA Linux kernel device-driver.
1415

src/scarlett_mixer.c

+21
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,27 @@ static Device devices[] = {
175175
.pad_map = { 16, 19, -1, -1 },
176176
.air_map = { 14, 17 },
177177
},
178+
{
179+
.name = "Scarlett 4i4 USB",
180+
.smi = 8, .smo = 6,
181+
.sin = 6, .sout = 4,
182+
.smst = 0,
183+
.samo = 4,
184+
.num_hiz = 2,
185+
.num_pad = 2,
186+
.num_air = 2,
187+
.pads_are_switches = true,
188+
.matrix_mix_column_major = true,
189+
.matrix_mix_offset = 21, .matrix_mix_stride = 8,
190+
.matrix_in_offset = 69, .matrix_in_stride = 1,
191+
.out_gain_map = { 6 /* Monitor */, 8, 10 /* Headphones */, 12, -1, -1 , -1, -1, -1, -1 },
192+
.out_gain_labels = { "Monitor L", "Monitor R", "Headphones L", "Headphones R", "", "", "", "", "", "" },
193+
.out_bus_map = { 77, 78, 79, 80, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
194+
.input_offset = 0,
195+
.hiz_map = { 15, 19 },
196+
.pad_map = { 16, 20, -1, -1 },
197+
.air_map = { 14, 18 },
198+
},
178199
};
179200

180201
#define NUM_DEVICES (sizeof (devices) / sizeof (devices[0]))

0 commit comments

Comments
 (0)