Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37786 - /etc/init.d/alsasound: warnings when trying to load built-in modules
Summary: /etc/init.d/alsasound: warnings when trying to load built-in modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High trivial (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-10 04:56 UTC by Georgi Georgiev
Modified: 2004-02-09 04:02 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 Georgi Georgiev 2004-01-10 04:56:35 UTC
Running kernel 2.6.1
I have all sound options built-in the kernel, except for the sound drivers themselves, because I want to pass options to the modules when I load them. I therefore have the following kernel configuration.

CONFIG_SND_SEQUENCER=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=y
CONFIG_SND_EMU10K1=m
CONFIG_SND_CMIPCI=m

When issuing /etc/init.d/alsasound start, it tries to look for sequencer modules in /proc/asound/seq/drivers and tries to load everything it finds there. However, I have snd-seq-oss built into the kernel and modrpobe gives a warning:

FATAL: Module snd_seq_oss not found.

I suggest this patch to alsasound which works around the issue:

--- media-sound/alsa-utils/files/alsasound 2003-12-19 07:37:12.000000000 +0900
+++ /etc/init.d/alsasound       2004-01-10 21:46:58.383469752 +0900
@@ -82,7 +82,7 @@
                sleep 1
                
                if [ -f /proc/asound/seq/drivers ] ; then
-                       SEQUENCERS="$(cut -d"," -f1 /proc/asound/seq/drivers)"
+                       SEQUENCERS="$(awk -F, '$2~/^empty$/ {print $1}' /proc/asound/seq/drivers)"
                        for SEQUENCER in ${SEQUENCERS}
                        do
                                einfo "Loading: ${SEQUENCER}"
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-09 04:02:38 UTC
In portage now.  Thanks for catching this.