Focusrite Scarlett 2nd and 3rd Gen mixer driver

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: MattKingUSA, khz

Post Reply
szszoke
Established Member
Posts: 10
Joined: Wed Nov 28, 2018 8:04 am
Been thanked: 1 time

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by szszoke »

geoffrey wrote: Mon Aug 30, 2021 3:36 pm
DarkPoubelle wrote: Thu Aug 26, 2021 8:48 am - Is a GUI planned for this sound-card, i mean like the Focusrite Control Center, for a more user-friendly management than the raw alsa mixer and the thousands of faders. ? I know how to use Qt kinda well and i might be able to recreate the same GUI as the original control software, but idk how to interact with the soundcard .
Yes, there is a GUI planned, and it's almost ready to share! Here's what it's looking like with a Gen 3 18i20:

Screenshot_2021-08-31_00-40-20.jpgScreenshot_2021-08-31_00-40-32.png

Stay tuned!
I don't know if you are at the stage where you need testers but if you do, I'd like to offer my time. I can test with a 18i20 MK3.
wolftune
Established Member
Posts: 1350
Joined: Fri Feb 24, 2012 7:40 pm
Location: Portland, OR
Been thanked: 2 times
Contact:

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by wolftune »

Running the new release, all is fine at this point.
Aaron Wolf
Music teacher, scholar
http://wolftune.com
User avatar
sysrqer
Established Member
Posts: 2520
Joined: Thu Nov 14, 2013 11:47 pm
Has thanked: 319 times
Been thanked: 148 times
Contact:

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by sysrqer »

I'm on a relatively new install so I forgot to make a few adjustments like enabling this. I'm not sure what's going on because the focusrite 6i6 input 1 and 2 don't seem to be working, there is no green ring lighting up even at full gain. I've booted into Windows and it is working there so I'm don't understand why it is not working in linux. That's when I realised I didn't have this driver enabled. Alsamixer shows nothing muted and everything turned up. I'm using linux-zen 5.15.12.zen1-1 on arch, is it a bug?

Hmm I've got no sound at all in or out now, with or without this driver.
geoffrey
Established Member
Posts: 252
Joined: Mon Jul 30, 2018 2:08 am
Has thanked: 33 times
Been thanked: 169 times

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by geoffrey »

sysrqer wrote: Fri Jan 07, 2022 6:58 pm I'm on a relatively new install so I forgot to make a few adjustments like enabling this. I'm not sure what's going on because the focusrite 6i6 input 1 and 2 don't seem to be working, there is no green ring lighting up even at full gain. I've booted into Windows and it is working there so I'm don't understand why it is not working in linux. That's when I realised I didn't have this driver enabled. Alsamixer shows nothing muted and everything turned up. I'm using linux-zen 5.15.12.zen1-1 on arch, is it a bug?

Hmm I've got no sound at all in or out now, with or without this driver.
Have you got the clock source set correctly? If that's set to S/PDIF instead of internal, and you have nothing plugged into the S/PDIF input, that would produce the symptoms you see.
User avatar
sysrqer
Established Member
Posts: 2520
Joined: Thu Nov 14, 2013 11:47 pm
Has thanked: 319 times
Been thanked: 148 times
Contact:

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by sysrqer »

geoffrey wrote: Sat Jan 08, 2022 1:57 am Have you got the clock source set correctly? If that's set to S/PDIF instead of internal, and you have nothing plugged into the S/PDIF input, that would produce the symptoms you see.
Ah that could be it, I do remember seeing S/PDIF listed. I've already done a timeshift restore but I'll try again later today to see if that's the problem. Thanks geoffrey.
holger@dehnhardt.org
Posts: 1
Joined: Wed Jan 12, 2022 6:14 pm

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by holger@dehnhardt.org »

I was looking for a new audio interface and stumbled over this thread. After reading everything I decided to buy a Scarlett 18i20, unpacked it, installed Geoffreys prebuild kernel, connected the interface and everything works!
A big bit thank you for your work, Geoffrey!!!

Holger
tobin
Posts: 2
Joined: Sat Jan 22, 2022 3:00 am

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by tobin »

I've just installed the drivers and they seem to work. I have an 8i6 Gen3 and when I set the Analog Outputs to PCM1/2 or any of the Analog Inputs, I can hear what I expect to, although I would echo what other people have said about the shortened names being confusing.

I haven't been able to get mixes to work. I want to listen to my keyboard (Analog Input 3/4) while I listen to my computer (PCM Output 1/2). I set mixer inputs 1/2 to PCM output 1/2 and mixer input 3/4 to analog input 3/4. Then on mix A I turn up the volume on channels 1 and 3. On mix B I turn up the volume on channels 2 and 4. Finally, I set analog output 1 to mix A and analog output 2 to mix B. I don't hear anything. Am I misunderstanding something about routing?
wolftune
Established Member
Posts: 1350
Joined: Fri Feb 24, 2012 7:40 pm
Location: Portland, OR
Been thanked: 2 times
Contact:

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by wolftune »

tobin, you've verified that you do hear each source when you set that as the output directly? So, you set output 1 to PCM 1 and you hear it correctly?
Aaron Wolf
Music teacher, scholar
http://wolftune.com
tobin
Posts: 2
Joined: Sat Jan 22, 2022 3:00 am

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by tobin »

wolftune wrote: Sat Jan 22, 2022 5:54 pm tobin, you've verified that you do hear each source when you set that as the output directly? So, you set output 1 to PCM 1 and you hear it correctly?
Yes, setting Analog Output 1/2 or Analog Output 3/4 to PCM 1/2 gives me sound from my computer. If I set any of the Analog Outputs to Analog Input 1 I can hear my microphone in the appropriate output and if I set any of the Analog Output to Analog Input 3/4 I can hear my keyboard.

I can't hear any of those input when I try to route them through a mix.

It might be worth noting that I am testing both with headphones plugged into each of the headphone outputs on the front and a headphone amp plugged into outputs 3/4 on the back. Same results for everything.
slrtbtfs
Posts: 1
Joined: Fri Jan 28, 2022 1:59 pm

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by slrtbtfs »

Hi @geoffrey

Thanks for writing these drivers!

On my setup (Fedora 35 with pipewire 0.3.43 and kernel version 5.15) audio output and routing the inputs through the internal mixer work quite well with my Scarlett 4i4 3rd Gen.

However what doesn't work most of the time are the audio inputs. The pipewire logs after reconnecting the interface are:

Code: Select all

Jan 28 15:08:53 pipewire[14923]: spa.alsa: hw:1,0: snd_pcm_drop No such device
Jan 28 15:08:53 pipewire[14923]: spa.alsa: hw:1,0: close failed: No such device
Jan 28 15:09:13 pipewire[14923]: spa.alsa: Broken configuration: no configurations available: Invalid argument
Jan 28 15:09:13 pipewire[14923]: spa.alsa: Broken configuration: no configurations available: Invalid argument
Jan 28 15:09:13 pipewire[14923]: spa.alsa: Broken configuration for playback: no configurations available: Invalid argument
Jan 28 15:09:13 pipewire[14923]: pw.node: (alsa_input.usb-Focusrite_Scarlett_4i4_USB_D8PNT000811E4F-00.pro-input-0-77) suspended -> error (Start error: Invalid argument)
Jan 28 15:09:13 pipewire[14923]: spa.alsa: Broken configuration: no configurations available: Invalid argument
Jan 28 15:09:13 pipewire[14923]: spa.alsa: Broken configuration: no configurations available: Invalid argument
Jan 28 15:09:13 pipewire[14923]: spa.alsa: Broken configuration for playback: no configurations available: Invalid argument

The dmesg output looks unsuspicious

Code: Select all

[ 2878.851892] usb 1-1: new high-speed USB device number 22 using xhci_hcd
[ 2878.978216] usb 1-1: New USB device found, idVendor=1235, idProduct=8212, bcdDevice= 6.45
[ 2878.978220] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 2878.978221] usb 1-1: Product: Scarlett 4i4 USB
[ 2878.978222] usb 1-1: Manufacturer: Focusrite
[ 2878.978223] usb 1-1: SerialNumber: D8PNT000811E4F
[ 2880.483531] usb 1-1: Focusrite Scarlett Gen 2/3 Mixer Driver enabled pid=0x8212
In very rare cases the this doesn't happen and the inputs work. About a year ago with earlier kernel versions inputs worked roughly once in 5 attempts, now its more like once in 100 attempts. Also different USB Ports seem to have a different probability of successful connection. Is it possible there might be some race condition involved here?

Since the interface works reliably on windows I assume there isn't a hardware fault going on here.

The same issue was also recently raised on the pipewire bug tracker https://gitlab.freedesktop.org/pipewire ... ssues/1948 and seems to affect other people as well.
jediselector
Posts: 1
Joined: Sun Jan 30, 2022 1:06 pm

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by jediselector »

Hi Geoffrey,

Loving your work on this! Everything started great with the latest Arch amd64 - I used alsamixer to set up the mix-minus on my 8i6 Gen3 all good. I then thought, can I run this on a Pi3? I compiled Raspbian with their 5.15.17 tag and connected. Alsamixer presented the controls, but the mixer was not working.

The only thing that now does work is if I directly route [Analogue Output 0x] to [Analogue x] on right hand side of the F3 Playback alsamixer window, this will pass audio, the mixer gain controls will not.

If I connect the 8i6 to my mac - all good + the mixer remains routing audio when unplugged. When I connect to either the Pi or the original, working Arch on amd64, audio via the mixer stops. I have stopped alsa-restore, this does help. Plug it back into the mac, all is good.

any suggestions on how to interrogate the 8i6 to find out what has flipped it into this partially working behaviour?

Thanks, Tim

Arch amd64

Code: Select all

$ uname -a
Linux archlinux 5.16.0-arch1-1 #1 SMP PREEMPT Mon, 10 Jan 2022 20:11:47 +0000 x86_64 GNU/Linux

$ cat /etc/modprobe.d/scarlett.conf 
options snd_usb_audio vid=0x1235 pid=0x8213 device_setup=1

dmesg snippet:
[ 1643.086139] usb 2-1.2: new high-speed USB device number 11 using ehci-pci
[ 1643.184156] usb 2-1.2: New USB device found, idVendor=1235, idProduct=8213, bcdDevice= 6.45
[ 1643.184175] usb 2-1.2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 1643.184181] usb 2-1.2: Product: Scarlett 8i6 USB
[ 1643.184186] usb 2-1.2: Manufacturer: Focusrite
[ 1643.184190] usb 2-1.2: SerialNumber: FXXXXXXXXXXXXX
[ 1644.681776] usb 2-1.2: Focusrite Scarlett Gen 2/3 Mixer Driver enabled pid=0x8213
Rapsbian pi3

Code: Select all

$ uname -a
Linux raspberrypi 5.15.17-v7-TGCUSTOM+ #1 SMP Sat Jan 29 21:37:39 GMT 2022 armv7l GNU/Linux

$ cat /etc/modprobe.d/scarlett.conf 
options snd_usb_audio vid=0x1235 pid=0x8213 device_setup=1

dmesg snippet:
[   70.728245] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
[   70.858934] usb 1-1.4: New USB device found, idVendor=1235, idProduct=8213, bcdDevice= 6.45
[   70.858955] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[   70.858965] usb 1-1.4: Product: Scarlett 8i6 USB
[   70.858973] usb 1-1.4: Manufacturer: Focusrite
[   70.858981] usb 1-1.4: SerialNumber: FXXXXXXXXXXXXX
[   72.486020] usb 1-1.4: Focusrite Scarlett Gen 2/3 Mixer Driver enabled pid=0x8213
[   72.499358] usbcore: registered new interface driver snd-usb-audio
Gps
Established Member
Posts: 1136
Joined: Mon Mar 09, 2015 3:09 pm
Has thanked: 332 times
Been thanked: 112 times

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by Gps »

I wanted to share this video already last week,, but after seeing the vid, I got the message that the vid was not available. :?

UNFA hooks up a Focusrite 2i2 3rd generation.

https://www.youtube.com/watch?v=5zFA5piXf8Q

Second generation can give some issues, but 3rd generation should work on Linux, according to UNFA.

I found my DAC. :)

With this topic, and the vid from UNFA, I am convinced I can use this dac.
Fingers crossed I won't run into issues because I am on openSUSE tumbleweed, but I doubt the distro will be of much relevance for this.
Since Arch and Tumbleweed are both rolling releases, at least the kernel will be the same.
User avatar
wvi
Established Member
Posts: 6
Joined: Fri Nov 26, 2021 1:12 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by wvi »

Any chance to get some devel version of the GUI, it would really make things easier? I am happy to contribute code too.
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by bluebell »

Gps wrote: Tue Feb 01, 2022 1:12 pm Second generation can give some issues, but 3rd generation should work on Linux, according to UNFA.

I found my DAC. :)

With this topic, and the vid from UNFA, I am convinced I can use this dac.
Fingers crossed I won't run into issues because I am on openSUSE tumbleweed, but I doubt the distro will be of much relevance for this.
Since Arch and Tumbleweed are both rolling releases, at least the kernel will be the same.
2nd Gen 2i4 works out of the box for years with a standard lowlatency kernel.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
sysrqer
Established Member
Posts: 2520
Joined: Thu Nov 14, 2013 11:47 pm
Has thanked: 319 times
Been thanked: 148 times
Contact:

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by sysrqer »

Does anyone know how to configure the headphone outputs on the 6i6? They seem to be outputting the Analogue output 1 & 2 (which I have a mix set up) so if I take down the headphone level in the mixer then the speakers also reduce in volume. I can't see any way to control what feeds the headphone outputs.

Ultimately I would like to have an different output that I can select from my daw as a cue mix essentially.
Post Reply