Skip to content

Instantly share code, notes, and snippets.

@briansorahan
Created September 30, 2013 03:00
Show Gist options
  • Save briansorahan/6758900 to your computer and use it in GitHub Desktop.
Save briansorahan/6758900 to your computer and use it in GitHub Desktop.
unmute-alsa-mixer
#!/bin/bash
function main {
local card="$1"; shift
local vol="$1"; shift
for n in 0 1 2 3 4 5 6 7 8 9
do
amixer -c $card sset Multi,$n ${vol}%,${vol}% unmute
done
}
main M44 100 "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment