Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84412 - aumix /etc/init.d/aumix script does not run with SUN audio module
Summary: aumix /etc/init.d/aumix script does not run with SUN audio module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High minor (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 10:00 UTC by Peter Schloemer
Modified: 2005-11-08 10:22 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 Peter Schloemer 2005-03-07 10:00:42 UTC
I tried to use the init script included in media-sound/aumix-2.8-r2 on my Sparc system to get my mixer settings saved/restored automatically, and it aborts with an error message:

"Sound support has not been compiled into the kernel, or is disabled.  Please check that the correct modules is loaded."

I am using the "cs4231" kernel module from the 2.4.18-sparc kernel. The line that causes the problem is in /etc/init.d/aumix:

if [ -z "`egrep 'sound|OSS' /proc/devices`" ] && [ ! -d /proc/asound ]

This does not find this audio device, because it is called "sparcaudio" in /proc/devices. I have fixed the problem by changing this line to

if [ -z "`egrep 'sound|OSS|sparcaudio' /proc/devices`" ] && [ ! -d /proc/asound ]
Comment 1 Peter Schloemer 2005-11-08 03:54:33 UTC
In setting up my Ultra 5 again from scratch, I realize Jeremy fixed this only
days after I reported it and just didn't mark the bug as resolved... Thanks!

Unfortunately there is a bug in the bugfix. The line to check for sound devices
is a bit different than before:

if ! grep -q 'sound|OSS|sparcaudio' /proc/devices && [[ ! -d /proc/asound ]]

The -E option is missing in the grep, so it doesn't regard the search text as a
regular expression and doesn't find an appropriate entry. The following line
works correctly:

if ! grep -q -E 'sound|OSS|sparcaudio' /proc/devices && [[ ! -d /proc/asound ]]

Thanks, Peter
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2005-11-08 10:22:49 UTC
Fixed now.  Thanks for pointing it out.