Unmute mixer controls before setting volume
authorUlrich Dangel <mru@grml.org>
Fri, 16 Dec 2011 10:27:59 +0000 (11:27 +0100)
committerUlrich Dangel <mru@grml.org>
Fri, 16 Dec 2011 10:27:59 +0000 (11:27 +0100)
autoconfig.functions

index 1a3488b..de8341d 100755 (executable)
@@ -1155,6 +1155,7 @@ config_mixer () {
 
             for CONTROL in Master PCM ; do
                if amixer -q | grep -q "Simple mixer control '$CONTROL'" ; then
+                  amixer -q set "${CONTROL}" unmute 1>/dev/null 2>&1
                   amixer -q set "${CONTROL}" "${VOL}"%
                   eend $?
                fi