geoffreybennett / scarlett-gen2

Linux kernel source tree with additional Focusrite Scarlett and Clarett support ("Scarlett2 USB Protocol Mixer Driver")
196 stars 6 forks source link

not working on Debian kernel 6.7.12+bpo-rt-amd64 #14

Open jlahtela opened 4 months ago

jlahtela commented 4 months ago

Hi,

I installed this to use with ALSA Scarlett2 Control Panel, but for some reason it do not work. I downloaded snd-usb-audio-kmod-6.7-v1.3 and did installation as said on readme. I did not get any issues.

However my Scarlett is not recognized. Once I start control panel it says on window top Scarlett 18i20 USB what is correct. But says "I don't recognize..."

dmesg says: [ 2.378349] usb 2-1.3: Product: Scarlett 18i20 USB [ 2.378351] usb 2-1.3: Manufacturer: Focusrite

uname -r says: 6.7.12+bpo-rt-amd64

Any idea what could be wrong?

geoffreybennett commented 4 months ago

Hi @jlahtela,

Sorry, I should probably put an issue template here too. Could you take a look at https://github.com/geoffreybennett/alsa-scarlett-gui/issues/new?template=issue.md and include that info here please.

Thanks, Geoffrey.

jlahtela commented 4 months ago

Confirmation

Issue Category

Please select the category that best describes your issue:

Environment Details

Linux Distribution and Version

(paste output from cat /etc/redhat-release or cat /etc/lsb_release here) Debian GNU/Linux 12 (bookworm)

Kernel Version

(paste output from uname -r here)

Kernel Messages

(paste output from dmesg | grep -A 5 -B 5 -i focusrite here) [ 2.044986] usb 1-1.3: new high-speed USB device number 3 using ehci-pci [ 2.069005] usb 2-1.2: new full-speed USB device number 3 using ehci-pci [ 2.154224] usb 1-1.3: New USB device found, idVendor=1235, idProduct=800c, bcdDevice= 2.7a [ 2.154227] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.154229] usb 1-1.3: Product: Scarlett 18i20 USB [ 2.154229] usb 1-1.3: Manufacturer: Focusrite [ 2.232993] usb 1-1.5: new full-speed USB device number 4 using ehci-pci [ 2.268254] MXM: GUID detected in BIOS [ 2.268514] nouveau 0000:01:00.0: vgaarb: deactivate vga console [ 2.269519] Console: switching to colour dummy device 80x25 [ 2.269579] nouveau 0000:01:00.0: NVIDIA GK104 (0e4070a2)

Focusrite Interface Series and Model

Bus 001 Device 003: ID 1235:800c Focusrite-Novation Scarlett 18i20

Audio System

(use ps aux | grep -E "pulseaudio|jackd|pipewire" to check)

Using ALSA directy on DAW.

Issue Description

Please provide a detailed description of the issue or feature request, including steps to reproduce (if applicable), expected behavior, and actual behavior:

I use Debian GNU/Linux 12 (bookworm) with 6.7.12+bpo-rt-amd64. I did install snd-usb-audio-kmod-6.7-v1.3 ,

However my Scarlett is not recognized. Once I start control panel it says on window top Scarlett 18i20 USB what is correct. But says "I don't recognize..."

dmesg says: [ 2.378349] usb 2-1.3: Product: Scarlett 18i20 USB [ 2.378351] usb 2-1.3: Manufacturer: Focusrite

uname -r says: 6.7.12+bpo-rt-amd64

Excepted behavior would be that in alsa-scarlett-gui it would work. image


Thank you for helping improve alsa-scarlett-gui!

jlahtela commented 4 months ago

Noticed that when I run make -j4 -C $KSRCDIR M=$(pwd) I get mulitple errors like this: Skipping BTF generation for pathhere/snd-usb-audio-kmod-6.7-v1.3/snd-usb-audio.ko due to unavailability of vmlinux

jlahtela commented 4 months ago

dmesg | grep -A 5 -B 5 -i focusrite output: [ 2.376128] nouveau 0000:01:00.0: bios: version 80.04.ea.00.12 [ 2.377537] nouveau 0000:01:00.0: fb: 2048 MiB GDDR5 [ 2.382237] usb 2-1.3: New USB device found, idVendor=1235, idProduct=800c, bcdDevice= 2.7a [ 2.382240] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.382241] usb 2-1.3: Product: Scarlett 18i20 USB [ 2.382242] usb 2-1.3: Manufacturer: Focusrite [ 2.428113] usb 1-1.2: New USB device found, idVendor=0a12, idProduct=0001, bcdDevice=52.76 [ 2.428116] usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 2.428117] usb 1-1.2: Product: Bluetooth2.1+EDR CLASS1 [ 2.444596] nouveau 0000:01:00.0: DRM: VRAM: 2048 MiB [ 2.444598] nouveau 0000:01:00.0: DRM: GART: 1048576 MiB

jlahtela commented 4 months ago

dmesg -w output when starting: [ 234.543040] usb 2-1.3: new high-speed USB device number 7 using ehci-pci [ 234.652580] usb 2-1.3: New USB device found, idVendor=1235, idProduct=800c, bcdDevice= 2.7a [ 234.652588] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 234.652591] usb 2-1.3: Product: Scarlett 18i20 USB [ 234.652593] usb 2-1.3: Manufacturer: Focusrite [ 234.654282] usb 2-1.3: clock source 43 is not valid, cannot use [ 234.654662] usb 2-1.3: found and selected valid clock source 41

jlahtela commented 4 months ago

Hmmm... I did realize something now... I got Scarlett 18i20 1st Gen... that is not supported, right?

geoffreybennett commented 4 months ago

Hi @jlahtela,

That's correct. Please see https://github.com/geoffreybennett/scarlett-gen2 for a list of supported devices.

On the other hand, Scarlett 1st Gen is supported anyway by the Linux kernel since 2014. On the third hand, the support isn't complete (no loading of interface state on startup, no saving of interface state, and reportedly some controls missing).

For reference, Scarlett 2nd Gen used a completely different protocol which is why I wrote this "scarlett2" driver. Focusrite continued to use that new protocol for the Scarlett 3rd and 4th Gen, and the Clarett USB, Clarett+, and Vocaster series.

What you're after is Scarlett 1st Gen support in alsa-scarlett-gui, which I've done a draft of. Please see https://github.com/geoffreybennett/alsa-scarlett-gui/issues/33 for discussion, and https://github.com/geoffreybennett/alsa-scarlett-gui/tree/dev for code which you can try out.

Regards, Geoffrey.

jlahtela commented 4 months ago

Yes you are correct!

To be honest I remembered that my device is gen2 so did start to look in to this...

Anyway good to hear that you are working on this in dev branch. I will be talking that in use so I can test and contribute to it!