Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 59983 Details for
Bug 80982
Stop/Restart of ALSA kills all apps with open audio devices
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
alsasound.patch
alsasound.patch (text/plain), 972 bytes, created by
Magnus Lidbom
on 2005-05-27 16:24:05 UTC
(
hide
)
Description:
alsasound.patch
Filename:
MIME Type:
Creator:
Magnus Lidbom
Created:
2005-05-27 16:24:05 UTC
Size:
972 bytes
patch
obsolete
>--- alsasound.old 2005-05-28 01:01:35.000000000 +0200 >+++ alsasound 2005-05-28 01:04:56.000000000 +0200 >@@ -129,19 +129,22 @@ > if [[ ! -d /proc/asound || -n "$(grep ' no soundcards ' /proc/asound/cards)" ]] ; then > eerror "ERROR: Failed to load necessary drivers" > fi > } > >-unload_modules() { >- local LOADED_MODULES="$(/sbin/lsmod | grep -E "^snd" | awk '{print $1}')" >- local MODULE >- for MODULE in ${LOADED_MODULES} >- do >- /sbin/rmmod ${MODULE} >& /dev/null >+unload_modules() >+{ >+ MODULES="$(/sbin/lsmod | grep -E "^snd" | awk '{print $1}')" >+ >+ while [[ "" != `lsmod | grep "^snd"` && $TRIES != "111111111" ]]; >+ do >+ TRIES=${TRIES}1 >+ /sbin/rmmod $MODULES >& /dev/null >+ /sbin/rmmod soundcore >& /dev/null >+ /sbin/rmmod gameport >& /dev/null >+ sleep 0.5 > done >- /sbin/rmmod soundcore >& /dev/null >- /sbin/rmmod gameport >& /dev/null > > # Return success if the modules are unloaded > [[ -z "$(/sbin/lsmod | grep -E "^snd" | awk '{print $1}')" ]] > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 80982
: 59983