From 58c0118724abd02614b4abedb1ecb098aaf57886 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Sat, 18 Jan 2020 20:07:25 -0500 Subject: [PATCH] Support for ES-9 --- scripts/start-es-9.sh | 18 ++++++++++++++++++ scripts/system-start-audio.sh | 1 + 2 files changed, 19 insertions(+) create mode 100644 scripts/start-es-9.sh diff --git a/scripts/start-es-9.sh b/scripts/start-es-9.sh new file mode 100644 index 0000000..f6500f8 --- /dev/null +++ b/scripts/start-es-9.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Script to add another audio interface if available. + +DEVICENAME='ES-9' +DEVICENUM="$(cat /proc/asound/cards | grep -m 1 $DEVICENAME | grep -o '[0-9]' | head -1)" + +if test -z "$DEVICENUM" + then + echo $DEVICENAME not connected + exit 1 + else + echo $DEVICENAME found at hw:$DEVICENUM +fi + +# Start up audio interface +alsa_in -d hw:$DEVICENUM -j "$DEVICENAME In" & +alsa_out -d hw:$DEVICENUM -j "$DEVICENAME Out" & diff --git a/scripts/system-start-audio.sh b/scripts/system-start-audio.sh index d0d9df1..8a27952 100644 --- a/scripts/system-start-audio.sh +++ b/scripts/system-start-audio.sh @@ -31,6 +31,7 @@ done # Eurorack audio interface sh ~/.config/scripts/start-es-8.sh +sh ~/.config/scripts/start-es-9.sh # Start up programs that use audio if [ -z "$skipi3" ]; then