Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa not recognizing usb soundcard
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
frddbbbl
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jun 2019
Posts: 98

PostPosted: Wed Mar 31, 2021 6:32 pm    Post subject: alsa not recognizing usb soundcard Reply with quote

Hi, i've been trying to connect my focusrite soundcard to my laptop. i have made sure the usb audio module is enabled in the kernel but the soundcard doesnt show up in alsamixer or audacity. The device shows up in dmesg:
Code:

[ 2693.602753] usb 1-1: new high-speed USB device number 5 using ehci-pci
[ 2693.733695] usb 1-1: New USB device found, idVendor=1235, idProduct=8202, bcdDevice= 4.1b
[ 2693.733700] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 2693.733703] usb 1-1: Product: Scarlett 2i2 USB
[ 2693.733706] usb 1-1: Manufacturer: Focusrite


I'm very new to using linux for anything audio based so i may just be missing something simple?
Any help appriciated,
Freddie.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Wed Mar 31, 2021 6:51 pm    Post subject: Reply with quote

frddbbbl,

What does
Code:
$ grep USB_AUDIO /usr/src/linux/.config
CONFIG_SND_USB_AUDIO=m
# CONFIG_/ is not set
show for you?

You probably want the first one.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jun 2019
Posts: 98

PostPosted: Wed Mar 31, 2021 7:01 pm    Post subject: Reply with quote

NeddySeagoon wrote:
frddbbbl,

What does
Code:
$ grep USB_AUDIO /usr/src/linux/.config
CONFIG_SND_USB_AUDIO=m
# CONFIG_/ is not set
show for you?

You probably want the first one.


It shows
Code:
CONFIG_SND_USB_AUDIO=m
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Wed Mar 31, 2021 7:43 pm    Post subject: Reply with quote

frddbbbl,

Good.
Does lsmod show snd_usb_audio loaded?

Hmm ... Searching for your Vendor ID, idVendor=1235 gives
Code:
$ modinfo snd_usb_audio | grep v1235
alias:          usb:v1235p4661d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v1235p0018d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1235p0010d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1235p000Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1235p000Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1235p0002d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v1235p0001d*dc*dsc*dp*icFFisc*ip*in*

Your Product ID, idProduct=8202 is not there.
It would be v1235p8202 ...

modinfo also tells
Code:
parm:           vid:Vendor ID for the USB audio device. (array of int)
parm:           pid:Product ID for the USB audio device. (array of int)


If snd-usb-audio is loaded,
Code:
 modprobe -r snd_usb_audio
to remove it.
We need to tell it about your device.

Code:
modprobe snd-usb-audio vid=0x1235 pid=0x8202


Now snd-usb-audio will bind to your Scarlett 2i2. Test that.
You will have another audio card. It will show up in /dev/snd anda alsamixer.

If it works, the next step in to make module loading use modprobe snd-usb-audio vid=0x1235 pid=0x8202 every time.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jun 2019
Posts: 98

PostPosted: Wed Mar 31, 2021 9:44 pm    Post subject: Reply with quote

Hi thanks, the module isn't loaded.
when i try
Code:
 modprobe snd-usb-audio vid=0x1235 pid=0x8202

it returns
Code:
modprobe: FATAL: Module snd-usb-audio not found in directory /lib/modules/5.4.60-gentoo

I'm not sure if 5.4.60 is reffering to my kernel version? eselect list kernel shows i am on 5.4.97, which i configured for usb audio and make installed before i posted on here.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Wed Mar 31, 2021 10:24 pm    Post subject: Reply with quote

frddbbbl,

5.4.60-gentoo is the kernel that you are booting. It need not be the kernel that eselect points to.

What does
Code:
ls -l /boot
show?

What about mount /boot
Code:
mount /boot
ls -l /boot
post that too.

Lastly, put the content of /boot/grub/grub.cfg onto a pastebin site please.

All of that will allow us trace what happened to your 5.4.97 kernel.

For the avoidance of doubt,
Code:
uname- -a
tells about the running kernel.
Code:
uname -a
Linux NeddySeagoon_Static 5.11.2-gentoo #2 SMP PREEMPT Fri Mar 5 10:13:14 GMT 2021 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linu

Fri Mar 5 10:13:14 GMT 2021 is the build date and time.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jun 2019
Posts: 98

PostPosted: Thu Apr 01, 2021 9:40 am    Post subject: Reply with quote

Hi thanks, i made the stupid mistake of not doing grub-mkconfig after my make install :oops: . I've now done modprobe snd-usb-audio vid=0x1235 pid=0x8202
and the focusrite shows up in alsamixer and audacity! the only issue is that it is being treated as one stero channel, i cannot choose between the two inputs on the soundcard.
Cheers,
Freddie
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Thu Apr 01, 2021 2:46 pm    Post subject: Reply with quote

frddbbbl,

That may be more module parameters.
Google says it works properly, but not how.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum