Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50071 - /etc/init.d/alsasound failes on kernel without module support
Summary: /etc/init.d/alsasound failes on kernel without module support
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-04 23:46 UTC by Mathias Hasselmann
Modified: 2004-06-07 19:31 UTC (History)
1 user (show)

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


Attachments
Patch for alsasound without indenting (without-indent.diff,1.09 KB, patch)
2004-05-06 11:40 UTC, Mathias Hasselmann
Details | Diff
The pretty printed patch (with-indent.diff,2.38 KB, patch)
2004-05-06 11:40 UTC, Mathias Hasselmann
Details | Diff
alsasound init script (alsasound-beta,5.62 KB, text/plain)
2004-06-02 11:53 UTC, Jeremy Huddleston (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Hasselmann 2004-05-04 23:46:02 UTC
For some more or less weird reasons I've decided to build my 2.6 kernel without module support. Works pretty well and pretty fast, expect that it breaks the /etc/init.d/alsasound script attached you'll find a modified script, which doesn't abort, when /proc/asound exists but not /proc/modules. Also it avoids doing any module stuff, when /proc/modules does not exist.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-06 02:08:44 UTC
can you please post the patch to alsasound =)
Comment 2 Mathias Hasselmann 2004-05-06 11:40:06 UTC
Created attachment 30868 [details, diff]
Patch for alsasound without indenting

This patch should help you to see what changed.
Comment 3 Mathias Hasselmann 2004-05-06 11:40:33 UTC
Created attachment 30869 [details, diff]
The pretty printed patch
Comment 4 Mathias Hasselmann 2004-05-06 11:43:36 UTC
Duh... Did i really forget to attach the file?
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-15 00:45:46 UTC
hmm... I don't really like the way this is working...

we could have alsa built in but still have module support enabled...

I think this script needs a rewrite to better handle stuff more abstractly...

--Jeremy
Comment 6 Mathias Hasselmann 2004-05-15 02:36:27 UTC
> I think this script needs a rewrite to better handle stuff more abstractly...

You might be very, very true - don't know. But for now I'd suggest to merge the changes, to make ALSA sound working, for people who don't have module support in their kernels. See, it's really annoying to restore your mixer settings manually after every reboot - which happens at least once a day on desktop machines.
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-02 11:48:19 UTC
i just got around to doing this, and as i looked at the code, i saw that the mixer settings are restored regardless of whether or not the modules were loaded...

In fact, because you have it builtin, you should have /proc/asound which would give you the 'Alsa Detected' message and avoid trying to load modules...  then it skips to mixer restoration...
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-02 11:53:01 UTC
Created attachment 32539 [details]
alsasound init script

try this init script... i just modularized it a little for better
readability... maybe you had an old version...
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-07 19:31:57 UTC
no response... worksforme