Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168670 - alsa-utils/alsa-utils-1.0.14_rc2-r1 init script doesn't properly detect all modules when unloading
Summary: alsa-utils/alsa-utils-1.0.14_rc2-r1 init script doesn't properly detect all m...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-28 01:40 UTC by DH
Modified: 2007-03-16 23:02 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 DH 2007-02-28 01:40:18 UTC
in the unload_modules function, the regex "^snd" is used to locate sound modules and unload them.  This is fine, if your module name starts with snd. In the case of cx88_alsa, it doesnt.  To get around it I changed it to "(^snd|cx88_alsa)" which is fine for me. Not an ideal solution at all, as I am sure there are more drivers like this one.

Reproducible: Always

Steps to Reproduce:
Comment 1 Chris Mayo 2007-02-28 20:01:05 UTC
Also in load_modules() for snd-usb-audio.

Changed pci: to 'pci:\|usb:' in:

DRIVERS="$(modprobe -c | grep pci: |  awk '{ print $3 }' | grep snd.* | sort | uniq)"
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-03-16 18:43:01 UTC
You sure you are referring of _-r1_ init.d? Because -r1 does not have unload_modules function anymore, and the new one actually takes care of that particular issue.

You might have forgotten to run etc-update.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-16 18:46:36 UTC
Which alsa-utils is this about? Plus see the comment above.
Comment 4 DH 2007-03-16 23:02:16 UTC
This is for alsa-utils-1.0.14_rc1, I ran etc-update just now to make sure it wasn't waiting to update anything and there were no updates.  I checked the alsasound script though and it was for a different version.  I don't know why, it isn't a file I would have had a problem with etc-update changing.  I'll assume it's fixed.

-DH