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>
master
Clayton Craft 4 years ago committed by Anjandev Momi
parent 42b9f482a9
commit fd0eb1dc88
  1. 6
      scripts/core/sxmo_audioout.sh

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

Loading…
Cancel
Save