Dock sounds are working again

This commit is contained in:
Felix Van der Jeugt 2020-10-16 10:34:30 +02:00
parent 80cd0beec4
commit 64e878f67c
No known key found for this signature in database
GPG Key ID: 58B209295023754D
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -27,9 +27,9 @@ export LC_ALL=en_US.utf8
# Select Dock sound card if it's there
#(it's broken)
#if [ -e /proc/asound/Dock ]; then
# export ALSA_CARD=Dock
#fi
if [ -e /proc/asound/Dock ]; then
export ALSA_CARD=Dock
fi
#stty -ixon # disable <C-s>