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:
parent
42b9f482a9
commit
fd0eb1dc88
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue