Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261017 - media-sound/alsa-utils: /etc/init.d/alsasound doesn't load USB sound card modules
Summary: media-sound/alsa-utils: /etc/init.d/alsasound doesn't load USB sound card mod...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-03 08:33 UTC by Nik Nyby
Modified: 2012-01-26 11:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nik Nyby 2009-03-03 08:33:38 UTC
In the case that the alsasound init script cannot detect the existing cards and must load all available sound modules, the script will only load pci cards.

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/alsasound restart
* Caching service dependencies ...    [ ok ]
 * Loading ALSA modules ...
 *   Could not detect custom ALSA settings.  Loading all detected alsa drivers.
 *   Loading: snd_hda_intel ...        [ ok ]
 *   Loading: snd_intel8x0 ...         [ ok ]
* Restoring Mixer Levels ...           [ ok ]

Actual Results:  
All available pci modules are loaded, but not usb ones.

 

Expected Results:  
Any usb sound modules available should be loaded. On my system this includes snd_usb_usx2y for my Tascam US-122 card.

Here is what I added to my /etc/init.d/alsasound:

@@ -21,7 +21,8 @@
 	if [ -z "${DRIVERS}" ] && \
 	( [ ! -r /proc/asound/cards ] || grep -q ' no soundcards ' /proc/asound/cards 2>/dev/null ) ; then
 		ewarn "Could not detect custom ALSA settings.  Loading all detected alsa drivers."
-		DRIVERS="$(modprobe -c | sed -n -e '/^alias pci:.* snd.*/ s/^alias pci:[^ ]* \(.*\)/\1/p' | sort | uniq)"
+		DRIVERS="$(modprobe -c | sed -n -e '/^alias pci:.* snd.*/ s/^alias pci:[^ ]* \(.*\)/\1/p' \
+				-e '/^alias usb:.* snd.*/ s/^alias usb:[^ ]* \(.*\)/\1/p' | sort | uniq)"
 		if [ -z "${DRIVERS}" ] ; then
 			eerror "Unable to find any ALSA drivers. Have you compiled alsa-drivers correctly?"
 		f
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-03 12:13:28 UTC
Reassigning to alsa herd.
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2009-08-24 16:05:54 UTC
Which version of ALSA are you on?

Also, need emerge --info
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2012-01-26 11:58:36 UTC
Information was asked for two years ago that was never provided.