Skip to content

Commit

Permalink
feat: add support for Scarlett 3rd-gen 4i4
Browse files Browse the repository at this point in the history
  • Loading branch information
clook committed Feb 19, 2022
1 parent a29c0a2 commit d18dfee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Currently supported models, first generation of

third generation of
- 8i6
- 4i4

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

Expand Down
21 changes: 21 additions & 0 deletions src/scarlett_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,27 @@ static Device devices[] = {
.pad_map = { 16, 19, -1, -1 },
.air_map = { 14, 17 },
},
{
.name = "Scarlett 4i4 USB",
.smi = 8, .smo = 6,
.sin = 6, .sout = 4,
.smst = 0,
.samo = 4,
.num_hiz = 2,
.num_pad = 2,
.num_air = 2,
.pads_are_switches = true,
.matrix_mix_column_major = true,
.matrix_mix_offset = 21, .matrix_mix_stride = 8,
.matrix_in_offset = 69, .matrix_in_stride = 1,
.out_gain_map = { 6 /* Monitor */, 8, 10 /* Headphones */, 12, -1, -1 , -1, -1, -1, -1 },
.out_gain_labels = { "Monitor L", "Monitor R", "Headphones L", "Headphones R", "", "", "", "", "", "" },
.out_bus_map = { 77, 78, 79, 80, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
.input_offset = 0,
.hiz_map = { 15, 19 },
.pad_map = { 16, 20, -1, -1 },
.air_map = { 14, 18 },
},
};

#define NUM_DEVICES (sizeof (devices) / sizeof (devices[0]))
Expand Down

0 comments on commit d18dfee

Please sign in to comment.