Lakka-LibreELEC/projects/NXP/devices/iMX6/filesystem/usr/bin/rdu-audio
2020-06-19 11:45:28 -07:00

29 lines
763 B
Bash
Executable File

#!/bin/sh
if [ -z "$1" ]; then
echo "usage: rdu-audio <0-100>"
echo " The recommended level is 80"
exit 1
fi
sleep 5
VOLUME="$1%"
amixer -q sset 'Headphone',0 $VOLUME
amixer -q sset 'Speaker',0 on
amixer -q sset 'Speaker Analog',0 $VOLUME
amixer -q sset 'Speaker Driver',0 $VOLUME
amixer -q sset 'Speaker Driver',0 on
amixer -q sset 'DAC',0 $VOLUME
amixer -q sset 'HP Analog',0 $VOLUME
amixer -q sset 'HP Driver',0 $VOLUME
amixer -q sset 'HP Driver',0 on
amixer -q sset 'HP Left',0 on
amixer -q sset 'HP Right',0 on
amixer -q sset 'Output Left From AIN1',0 on
amixer -q sset 'Output Left From AIN2',0 on
amixer -q sset 'Output Left From Left DAC',0 on
amixer -q sset 'Output Right From AIN2',0 on
amixer -q sset 'Output Right From Right DAC',0 on