sxmo_audioout: use existing env vars for audio devices

If the env variables in this script are set, use those values. Else it
defaults to using the values set before this patch.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:
Clayton Craft 2021-04-23 10:45:13 -07:00 committed by Anjandev Momi
parent 42b9f482a9
commit fd0eb1dc88

View file

@ -5,9 +5,9 @@ ARG="$1"
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
SPEAKER="Line Out"
HEADPHONE="Headphone"
EARPIECE="Earpiece"
${SPEAKER:-"Line Out"}
${HEADPHONE:-"Headphone"}
${EARPIECE:-"Earpiece"}
amixer set "$SPEAKER" mute
amixer set "$HEADPHONE" mute