Update config -L -1 just reads MicVolume

pull/449/head
Alan Johnston 3 weeks ago committed by GitHub
parent 7b99c51156
commit 8fae58b4f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1594,13 +1594,9 @@ elif [ "$1" = "-L" ]; then
mic="$param2"
fi
if ! [ -z $mic ] && [[ $mic =~ ^[+-]?[0-9]+([.][0-9]+)?$ ]] ; then
# systemctl --user stop wireplumber
if ! [ -z $mic ] && [[ $mic =~ ^[+]?[0-9]+([.][0-9]+)?$ ]] ; then
echo "Updating mic level to" $mic "%"
# value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c ${2:0:1} set MicVolume $mic
value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c $USBCARD sset 'MicVolume' $mic%
# systemctl --user start wireplumber
else
echo "Not updating mic level"
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.