Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78993 - alsasound with kernel without module support
Summary: alsasound with kernel without module support
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL: http://www.alsa-project.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-21 12:52 UTC by Krzysztof Pawlik (RETIRED)
Modified: 2005-01-23 03:48 UTC (History)
1 user (show)

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


Attachments
Patch (alsasound.patch,1.31 KB, patch)
2005-01-21 12:53 UTC, Krzysztof Pawlik (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Pawlik (RETIRED) gentoo-dev 2005-01-21 12:52:25 UTC
When booting machine with kernel without module support alsasound gives those messages:

 * Loading ALSA drivers
FATAL: Could not load /lib/modules/2.6.10-ck5/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.10-ck5/modules.dep: No such file or directory
 * Restoring Mixer Levels

It doesn't do anything wrong and it's true (there's no `uname -r` directory in modules for that kernel). But it's not elegant. When stopping alsasound there are errors too.

Attached simple patch adds new variable to conf.d/alsasound, that specifies whenever try to load any modules. Default value for USE_MODULES is "yes" (it's safer, because it will work always, just those messages can apprear as cited above).
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-01-21 12:53:02 UTC
Created attachment 49134 [details, diff]
Patch

Patch for init.d/alsasound and conf.d/alsasound.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-21 21:37:08 UTC
Can you please verify that this is still the case with the latest init script:
/usr/portage/media-sound/alsa-utils/files/alsasound

I think I resolved this issue months ago.
Comment 3 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-01-22 03:25:13 UTC
Ok, it helped. Bite me why the alsa-utils ebuild didn't copy the new version from files/ to /etc/init.d/.

With version from files/ (the new one) I still get 'Unloading ALSA' message, for what?
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-22 03:34:58 UTC
It kills all processes using the sound devices
Comment 5 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-01-22 05:56:14 UTC
IMHO it's useless when no sound-related modules are loaded.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-22 16:55:51 UTC
fine, then don't use it.  I'm not making you.
Comment 7 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-01-23 03:48:23 UTC
I was just trying to help.