alsa-utils: added restore function in alsasettings script (fix of alsamixer... - why do we need this?

Zbigniew Luszpinski zbiggy at o2.pl
Sat Apr 16 21:10:47 CEST 2011


Hello,

why do we need to restore alsa mixer settings twice? (udev already restores alsa mixer settings on boot and this script does the same later)
For me it's just useless.

have a nice day,
Zbigniew Luszpinski

http://foo-projects.org/git/?p=lunar/moonbase.git;a=commit;h=ec42d99fca3e717cd5bd8dd36fba686c6decda5b

--- a/audio/alsa-utils/init.d/alsasettings
+++ b/audio/alsa-utils/init.d/alsasettings
@@ -14,8 +14,15 @@ function store() {
   amixer set Master mute &> /dev/null
 }
 
+# Added for restoring alsa mixer levels. neocrust at gmail.com
+function restore() {
+ echo "Restoring ALSA mixer settings..."
+ alsactl restore
+}
+
 case "$1" in
   start)
+       restore
        ;;
    stop)
        store


More information about the Lunar-dev mailing list