Focusrite Scarlett 2nd and 3rd Gen mixer driver

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

Moderators: MattKingUSA, khz

Post Reply
wirenoise
Established Member
Posts: 7
Joined: Sun Sep 19, 2021 9:23 pm

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

Post by wirenoise »

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!
Will this be able to set pad/inst/line, or is this possible already? Also will this support panning channels like in focusrite control, because I'd like to monitor my digitakt in stereo but since both outputs are mono and centered on the device I can't monitor in stereo.
User avatar
sadko4u
Established Member
Posts: 983
Joined: Mon Sep 28, 2015 9:03 pm
Has thanked: 2 times
Been thanked: 359 times

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

Post by sadko4u »

I'm currently working on LSP Plugins 1.2.0 release. When I'll have time, I'll get back to Scarlett driver and send many additions to it related to the control of internal state of the device.
LSP (Linux Studio Plugins) Developer and Maintainer.
almet
Posts: 1
Joined: Mon Sep 27, 2021 6:19 pm
Been thanked: 2 times

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

Post by almet »

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!
This looks so great! Let me know if you want to have a tester at hand for this, I'll be happy to help.

I also take the occasion to state a big THANK YOU for working on integrating the drivers into the Linux kernel. It's really appreciated.

Cheers!
DarkPoubelle
Established Member
Posts: 4
Joined: Thu Aug 26, 2021 8:34 am
Has thanked: 5 times

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

Post by DarkPoubelle »

almet wrote: Mon Sep 27, 2021 6:21 pm
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!
This looks so great! Let me know if you want to have a tester at hand for this, I'll be happy to help.

I also take the occasion to state a big THANK YOU for working on integrating the drivers into the Linux kernel. It's really appreciated.

Cheers!
Interested for testing too ! :)
ravv
Posts: 1
Joined: Mon Oct 04, 2021 5:50 pm

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

Post by ravv »

Hi, I tried out the Gen 3 4i4 support on a custom-built kernel back in May 2021, and it worked great. After leaving my 4i4 in a sad corner for several months I decided to pick it back up again, and I was pleasantly surprised to discover that the Gen 3 driver has been merged as of 5.14 - congrats!

However, when I run the following command on 5.14.8 (Arch Linux stock kernel):

Code: Select all

pw-jack jack_lsp | grep Scarlett
I can see that there are now only 3 recording channels advertised on my system:
  • Scarlett 4i4 USB Analog Surround 2.1:capture_FL
  • Scarlett 4i4 USB Analog Surround 2.1:capture_FR
  • Scarlett 4i4 USB Analog Surround 2.1:capture_LFE
  • Scarlett 4i4 USB Analog Surround 4.0:playback_FL
  • Scarlett 4i4 USB Analog Surround 4.0 Monitor:monitor_FL
  • Scarlett 4i4 USB Analog Surround 4.0:playback_FR
  • Scarlett 4i4 USB Analog Surround 4.0 Monitor:monitor_FR
  • Scarlett 4i4 USB Analog Surround 4.0:playback_RL
  • Scarlett 4i4 USB Analog Surround 4.0 Monitor:monitor_RL
  • Scarlett 4i4 USB Analog Surround 4.0:playback_RR
  • Scarlett 4i4 USB Analog Surround 4.0 Monitor:monitor_RR
  • Midi-Bridge:Scarlett 4i4 USB:(capture_0) Scarlett 4i4 USB MIDI 1
  • Midi-Bridge:Scarlett 4i4 USB:(playback_0) Scarlett 4i4 USB MIDI 1
Previously (in May 2021 on a custom-built kernel), I would have six recording channels available.

This means, for example, that if I run audacity with pw-jack audacity, use the JACK driver and select the 4i4, I can only record three channels, and not the expected six channels that the 4i4 supports.

If I run alsamixer, I can see the configuration for all six channels PCM 01 to PCM 06 that I expect (I have set them to record Analogue 1, Analogue 2, Mix E, Mix F, Mix A, Mix B in my setup), and in the dmesg I can see "Product: Scarlett 4i4 USB" and "Focusrite Scarlett Gen 2/3 Mixer Driver enabled pid=0x8212", so I am pretty sure the kernel driver has correctly detected my 4i4.

Is this a bug with the kernel driver that causes me to only see three recording channels through ALSA/Pipewire, or could it be something to do with my Pipewire userland?

EDIT: I figured it out - I had forgotten to select "Pro Audio" as the configuration for the audio device in pavucontrol. After selecting this, all 6 recording channels are available. Thanks again for the amazing work on this driver!
Last edited by ravv on Mon Oct 04, 2021 6:35 pm, edited 1 time in total.
latency-fun
Established Member
Posts: 13
Joined: Mon Oct 25, 2021 5:07 am

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

Post by latency-fun »

I'm still learning about the kernel/distrubutions ...

Does anyone know if all the work on the focusrite... is in the Arch-Zen 5.14.14 ?

Or would I need to download/install the kernel from geoffreybennett's git ?

Thinking about purchasing a focusrite for testing.

Thanks!
g29
Posts: 2
Joined: Sat Oct 30, 2021 4:58 pm

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

Post by g29 »

latency-fun wrote: Mon Oct 25, 2021 5:54 am I'm still learning about the kernel/distrubutions ...

Does anyone know if all the work on the focusrite... is in the Arch-Zen 5.14.14 ?

Or would I need to download/install the kernel from geoffreybennett's git ?

Thinking about purchasing a focusrite for testing.

Thanks!
FWIW, I am running Debian 11 with the latest Debian 5.14 backports kernel.

Linux - 5.14.0-0.bpo.2-amd64 #1 SMP Debian 5.14.9-2~bpo11+1 (2021-10-10) x86_64 GNU/Linux

After adding the /etc/modprobe.d/scarlett.conf file and rebooting, the new alsamixer options showed up.

Trying to test it out with a Scarlett 8i6 Gen 3 now.
Last edited by g29 on Sat Oct 30, 2021 5:15 pm, edited 1 time in total.
g29
Posts: 2
Joined: Sat Oct 30, 2021 4:58 pm

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

Post by g29 »

Geoffrey,

First and foremost, thank you and all who have contributed to this project.

Here is my initial Feedback testing with a Gen 3 Scarlett 8i6.

The CAPTURE [F4] screen's "Analogue [1-N]" labels get truncated making the first 6 entries appear to all be set to the same value "Analogue".

Maybe "Analogue" could be abbreviated, or the "N" could be placed first, or line-wrap to 2 rows, or a combination to show the overall distinctions ? Similar ambiguous truncated display issues appear with other options.

Image

Update: "Clock Source" "S/PDIF" is working (LOCKED) on the 8i6 for sample rates [44.1-176.4]kHz.

Thanks much !!!

Debian 11-64 bit
Kernel: Linux - 5.14.0-0.bpo.2-amd64 #1 SMP Debian 5.14.9-2~bpo11+1 (2021-10-10) x86_64 GNU/Linux
svet-am
Posts: 1
Joined: Fri Oct 29, 2021 6:29 pm

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

Post by svet-am »

@geoffrey I've been doing my research / planning on converting my DAW workstation to Linux and came across this thread. I saw your post back in August about your patch bay GUI being "almost ready." Is it ready yet? If you need testers, I volunteer as tribute.
emilio
Posts: 1
Joined: Wed Nov 03, 2021 2:00 am

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

Post by emilio »

Hi, @geoffrey. Thanks so much for all the work on this driver.

I'm on Fedora 35 with a kernel 5.14.14-300.fc35.x86_64+debug. I tried to enable the driver (I have a Scarlett 8i6) and I'm seeing frequent driver errors on my log:

Code: Select all

[    9.316002] usb 1-1: Focusrite Scarlett Gen 2/3 Mixer Driver enabled pid=0x8213
[    9.323472] usb 1-1: Scarlett Gen 2/3 USB request result cmd 2001 was -71
[    9.323488] usb 1-1: Error initialising Scarlett Mixer Driver: -22
[    9.323860] snd-usb-audio: probe of 1-1:1.0 failed with error -22
It doesn't happen all the time (after a few unplugs / re-plugs then it starts working, and audio outputs are detected by pulseaudio once I restart wireplumber with `systemctl --user restart wireplumber`). I'm not sure if it's known, but I figured I'd mention it since I don't see it reported here. Let me know if I can help debug.

The other thing I see is that analog inputs are not showing up in the GNOME settings, but I believe that's probably an issue with GNOME looking at the journal: https://gist.github.com/emilio/778903b7 ... 8d5542690e

Code: Select all

Nov 03 03:09:21 ryzen gnome-shell[3481]: Couldn't match the portless stream (with card) - 'Scarlett 8i6 USB Multichannel' is it an input ? -> 1, streams card id -> 182
Nov 03 03:09:21 ryzen gsd-media-keys[3866]: Couldn't match the portless stream (with card) - 'Scarlett 8i6 USB Multichannel' is it an input ? -> 1, streams card id -> 182
Nov 03 03:09:21 ryzen gnome-control-c[6439]: Couldn't match the portless stream (with card) - 'Scarlett 8i6 USB Multichannel' is it an input ? -> 1, streams card id -> 182
Nov 03 03:09:21 ryzen gnome-control-c[6439]: gvc_mixer_control_get_stream_from_device: assertion 'GVC_IS_MIXER_UI_DEVICE (device)' failed
Anyways let me know if I can help somehow. Thanks!
cpw
Posts: 2
Joined: Tue Jul 21, 2020 1:56 pm

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

Post by cpw »

So, I'm trying to get capture and output working simultaneously with pipewire/wireplumber.

It seems that I need to specify a very small "api.alsa.period-size" (explained here: https://gitlab.freedesktop.org/pipewire ... properties and also a test example is given).

When I set a small period-size, it seems I can no longer output to the device. I have tried input-side-only period tweaks but they don't seem to work.
I'm wondering if anyone has any suggestions on how I can fix this - I would really like to get input capture working in pipewire, and it seems this is the key).
reclisten
Posts: 1
Joined: Wed Dec 01, 2021 7:43 am

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

Post by reclisten »

I'm running ubuntu 20.04 with last prebuilld 5.14.0 packages on laptop with intel hdaudio that I couldn't disable in UEFI
dmesg seems alright

Code: Select all

[    4.037724] usb 3-2.2: new high-speed USB device number 8 using xhci_hcd
[    4.142276] usb 3-2.2: New USB device found, idVendor=1235, idProduct=8211, bcdDevice= 5.ff
[    4.142286] usb 3-2.2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[    4.142290] usb 3-2.2: Product: Scarlett Solo USB
[    4.142293] usb 3-2.2: Manufacturer: Focusrite
5.210028] scsi 3:0:0:0: Direct-Access     Scarlett Welcome Disk     0.10 PQ: 0 ANSI: 2
 6.389834] usb 3-2.2: Focusrite Scarlett Gen 2/3 Mixer Driver enabled pid=0x8211
[    6.392571] usbcore: registered new interface driver snd-usb-audio
I do have two devices in pulse Scarlett USB and Scarlet USB (S/PDIF)
I have 3.5 speakers connected to the headphones on scarlet solo v3 with 6.35 to 3.5. And in Windows I could all sound goes through those speakers.
However in Ubuntu sound goes only through build in laptop speakers (tried both Scarlett USB and Scarlet USB (S/PDIF)), even though I hear loud noise from speakers when connect those to headphones on solo.
Please, help how I could make sound go through the speakers.

In

Code: Select all

alsamixer -cUSB
output I see only MSD Mode

UPD
Fixed the issue with changing pulse with pipewire https://askubuntu.com/questions/1339765 ... untu-20-04
In deadbeef I was able to play through the speakers selecting alsa and Scarlet USB (Deafult Device), but to actually enable that system-wise without hassle, switching to the pipewire did helped, but i guess I also could change output device in pulse config manually (didn't tried through)
Last edited by reclisten on Wed Dec 01, 2021 9:21 am, edited 1 time in total.
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 »

I have been running my kernel with this patch enabled for about a month or two and I didn't notice anything weird. I am using it with a Scarlett 18i20 MK3 with a custom mix.

My kernel version is 5.15.7-1-MANJARO.

Changing the mixer settings via alsamixer also seems to work but of course it would be more user friendly with the GUI application.
User avatar
sadko4u
Established Member
Posts: 983
Joined: Mon Sep 28, 2015 9:03 pm
Has thanked: 2 times
Been thanked: 359 times

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

Post by sadko4u »

Hi all! In this stream we will improve the code for the Linux Kernel driver of Focusrite Scarlett audio interface series.
The stream will happen on friday, 7th jan, 21:00 GMT
https://youtu.be/1JCgQrukVBs
LSP (Linux Studio Plugins) Developer and Maintainer.
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 »

Looks like a new release has been posted: https://github.com/geoffreybennett/scar ... v5.15.12s1
Post Reply