Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175740 - Change needed for /etc/init.d/alsasound:unload_modules()
Summary: Change needed for /etc/init.d/alsasound:unload_modules()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-23 18:17 UTC by chad heuschober
Modified: 2009-01-19 17:13 UTC (History)
1 user (show)

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 chad heuschober 2007-04-23 18:17:07 UTC
The unload_modules function of the alsa init script assumes that all soundcard modules are prefixed with 'snd' but I happen to have two (of the same) card with alsa modules that do not get prefixed with 'snd'

These cards are supported by: cx88_alsa

I'm not certain which the preferred solution is though as far as I know this is a localized case of nonstandard naming so a change to the unload_modules() function to the tune of

... grep -E '^(snd|cx88_alsa)' ...

should work but it's not particularly elegant.

Reproducible: Always
Comment 1 chad heuschober 2007-04-30 06:16:04 UTC
I saw today that the alsa init script was recently changed but no handling for the mentioned alsa driver was included. The proposed bit of hackery to get the driver to unload will no longer work.

Please include some type of handling for this valid alsa driver with non-standard naming in future versions of the init.

If it is of any interest this driver supports the pcHDTV 5500 tuner cards, a very popular choice among mythtv users considering that they were designed for linux.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-11-19 10:10:48 UTC
*** Bug 199642 has been marked as a duplicate of this bug. ***
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2009-01-19 17:13:01 UTC
As of ALSA 1.0.19 we have disabled the automatic unloading of modules. Upstream felt, and we wholeheartedly agreed, that this was a particularly silly idea to begin with.
Several bugs have been filed about how this breaks shutdown for people, and with a recent further modularisation of the HD-Audio driver it only got worse (as ordering has to be considered when unloading, which the current code does not do either).
I'm sorry that this bug report was open for *way* too long, but I agree with your assessment that this code is broken.