Sound of dock seems broken

This commit is contained in:
Felix Van der Jeugt 2020-09-22 11:02:57 +02:00
parent a4b4e35e9b
commit 7186a832af
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
card="$(aplay -l | sed -n 's/^card [0-9]*: \(\w*\).*/\1/p' | tail -1)" #card="$(aplay -l | sed -n 's/^card [0-9]*: \(\w*\).*/\1/p' | tail -1)"
card=PCH
control="$(amixer -c "$card" scontrols | sed -n "1s/.*'\(.*\)'.*/\1/p")" control="$(amixer -c "$card" scontrols | sed -n "1s/.*'\(.*\)'.*/\1/p")"
uplimit="$(amixer -c "$card" get "$control" | grep "Limits:" | tr -s ' ' | cut -d' ' -f6)" uplimit="$(amixer -c "$card" get "$control" | grep "Limits:" | tr -s ' ' | cut -d' ' -f6)"