Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 78323

Summary: /etc/init.d/alsasound dependencies makes it start after coldplug
Product: Gentoo Linux Reporter: Robert Wohlrab <robert.wohlrab>
Component: New packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED INVALID    
Severity: normal CC: dsd, eradicator
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for alsasound to start it before coldplug/hotplug

Description Robert Wohlrab 2005-01-17 01:18:43 UTC
Since the dependencies are set to load alsasound init script after coldplug the order of the soundcards (if you have more than one) is lost. I also lost the oss wrapper, when i load first the modules with coldplug and then started alsasound (i needed to unload all modules first and then I had to restart alsasound). A possible fix is to start alsasound before coldplug (patch attached). But then another problem appears. You need to load usb, pcmcia modules manually (with modules.autoload.d/kernel-2.x) to access usb/pcmcia/... soundcards (couldnt tested it, but should work in this way).

Reproducible: Always
Steps to Reproduce:
Comment 1 Robert Wohlrab 2005-01-17 01:20:10 UTC
Created attachment 48736 [details, diff]
Patch for alsasound to start it before coldplug/hotplug
Comment 2 Robert Wohlrab 2005-01-17 02:11:47 UTC
I forgot to say, that the lost of snd_*_oss functionality happens here with gentoo-dev-sources-2.6.10-r4
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-01-17 02:54:14 UTC
Which runlevels are coldplug and alsasound in?
Comment 4 Robert Wohlrab 2005-01-17 03:02:29 UTC
Both are in boot
Comment 5 Eric Shattow 2005-01-18 17:32:45 UTC
try...

rc-update del alsasound boot
rc-update add alsasound default
Comment 6 Robert Wohlrab 2005-01-19 01:48:02 UTC
Doenst help. (And this causes alsasound to be loaded 100% after coldplug, the 100% wrong way to do it). When you come with adding coldplug to default, this could help with the alsasound problem, but will cause problems with programs, which need specific modules.
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-21 21:39:11 UTC
It's supposed to start after coldplug.  That is neccessary for loading USB drivers.  If you don't want coldplug to load your drivers, place alsa modules in the exclude file.