Update config add MicVolumne

master-b3
Alan Johnston 1 month ago committed by GitHub
parent 31947f88d3
commit a2df3b455f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1580,7 +1580,7 @@ elif [ "$1" = "-L" ]; then
echo echo
if [ -z "$param2" ] ; then if [ -z "$param2" ] ; then
echo -e "Enter microphone level in percentage (integer 0 - 100): " echo -e "Enter microphone level (integer 0 - 255): "
read mic read mic
else else
mic="$param2" mic="$param2"
@ -1588,7 +1588,7 @@ elif [ "$1" = "-L" ]; then
if ! [ -z $mic ] && [[ $mic =~ ^[+-]?[0-9]+([.][0-9]+)?$ ]] ; then if ! [ -z $mic ] && [[ $mic =~ ^[+-]?[0-9]+([.][0-9]+)?$ ]] ; then
echo "Updating mic level to" $mic "%" echo "Updating mic level to" $mic "%"
value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c ${2:0:1} set Mic $mic% value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c ${2:0:1} set MicVolume $mic
else else
echo "Not updating mic level" echo "Not updating mic level"
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.