Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42248 - /etc/init.d/alsasound fails to call card-dependent scripts on 2.6.x
Summary: /etc/init.d/alsasound fails to call card-dependent scripts on 2.6.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-20 06:36 UTC by Alex Holland
Modified: 2004-02-21 02:08 UTC (History)
0 users

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


Attachments
alsasound init script (alsasound,5.06 KB, text/plain)
2004-02-20 15:09 UTC, Jeremy Huddleston (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Holland 2004-02-20 06:36:07 UTC
The alsasound script in /etc/init.d has a section that calls card dependent scripts for each driver by taking the driver name (obtained through modprobe), then stripping "snd-" from the start and running the script in /etc/alsa.d/ with a name equal to the remainer (so snd-emu10k1 would run /etc/alsa.d/emu10k1).

I used this to load soundfonts with sfxload in 2.4, but since switching to 2.6 I've noticed it's not being called anymore. A bit of poking around revealed that the driver is now called snd_emu10k1 rather than snd-emu10k1, so the prefix stripping isn't working anymore.

I'd write a fix, but my bash scripting isn't really up to it.

Cloney

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-20 15:05:48 UTC
I'll upload a script here for you to check in a few...
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-20 15:09:28 UTC
Created attachment 26004 [details]
alsasound init script

Please test out this init script to see if it corrects the problem.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-21 02:08:07 UTC
I committed the fix along with another one, so it's in portage now... it was trivial enough, so I'm pretty confident it works... if not, let me know.

Thanks.