aboutsummaryrefslogtreecommitdiffstats
path: root/bin/start_jack
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2013-12-11 15:30:05 +0100
committerDavid Runge <david.runge@frqrec.com>2013-12-11 15:30:05 +0100
commitaf269ca4058753868de4390fb8497453a9e7acd0 (patch)
treef094e877ec737c42d7049b9b0b232e0cb867a23c /bin/start_jack
parent5e44226f2f1f3f566453a5ed74667d8eea31acec (diff)
downloaddotfiles-af269ca4058753868de4390fb8497453a9e7acd0.tar.gz
dotfiles-af269ca4058753868de4390fb8497453a9e7acd0.tar.bz2
dotfiles-af269ca4058753868de4390fb8497453a9e7acd0.tar.xz
dotfiles-af269ca4058753868de4390fb8497453a9e7acd0.zip
Updated start_jack/stop_jack for my beaglebone
Diffstat (limited to 'bin/start_jack')
-rwxr-xr-xbin/start_jack10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/start_jack b/bin/start_jack
index d3cb508..d28733c 100755
--- a/bin/start_jack
+++ b/bin/start_jack
@@ -9,7 +9,15 @@ case "$HOSTNAME" in
alsa_out -d hw:0 -q1 &> .log/alsa_out.log &
;;
"beagleclone")
- /usr/bin/xvfb-run -s "-screen 0, 1280x800x24" -a -e ~/.log/xvfb-run-jack.error jackd -dalsa -dhw:1,0 -p128 -n3 -s &> ~/.log/jackd.log &
+ CARDS=$(aplay -l)
+ EXTERNAL="card 1"
+ if [[ "$CARDS" == *$EXTERNAL* ]];then
+ echo "Starting with external USB card"
+ /usr/bin/xvfb-run -s "-screen 0, 1280x800x24" -a -e ~/.log/xvfb-run-jack.error jackd -dalsa -dhw:1,0 -p128 -n3 -s &> ~/.log/jackd.log &
+ else
+ echo "Starting with internal HDMI card"
+ /usr/bin/xvfb-run -s "-screen 0, 1280x800x24" -a -e ~/.log/xvfb-run-jack.error jackd -dalsa -dhw:0,0 -p128 -n3 -s &> ~/.log/jackd.log &
+ fi
;;
"dvzrv")
DEVICE="/dev/fw1"