Skip to contentSkip to conversation

only start us428control if an us428 listens

PATCH Applied Karsten Wiese 2 participants 2 messages Dec 3, 2003 – Dec 4, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 only start us428control if an us428 listens

Hi Takashi,

please commit. thanks!

Karsten

Index: alsa-tools/usx2yloader/tascam_fpga.in
===================================================================
RCS file: /cvsroot/alsa/alsa-tools/usx2yloader/tascam_fpga.in,v retrieving revision 1.2

usx2yloader/tascam_fpga.in +33 -6
diff -u -r1.2 tascam_fpga.in
@@ -1,18 +1,45 @@
 #!/bin/sh
-# load the firmware into Tascam USB devices (FPGA design)
+# load the firmware into Tascam USB devices (FPGA design),
+# start appropriate control application.
 
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 
 LOADER=@bindir@/usx2yloader
+CONTROLLER=
 
-if [ -x /usr/bin/logger ]; then
-	/usr/bin/logger -t $0 "calling $LOADER for $DEVICE"
+if [ -x $LOADER ]; then
+	if [ -x /usr/bin/logger ]; then
+		/usr/bin/logger -t $0 "calling $LOADER for $DEVICE"
+	fi
+	$LOADER
+else
+	if [ -x /usr/bin/logger ]; then
+		/usr/bin/logger -t $0 "missing $LOADER for $DEVICE"
+	fi
 fi
-$LOADER
-if [ -x @bindir@/us428control ]; then
-	@bindir@/us428control &
+
+case $PRODUCT in
+1604/8001/*)
+	CONTROLLER=@bindir@/us428control
+	;;
+*)
+	;;
+esac
+
+if [ -n $CONTROLLER ]; then
+	if [ -x $CONTROLLER ]; then
+		if [ -x /usr/bin/logger ]; then
+			/usr/bin/logger -t $0 "starting $CONTROLLER for $DEVICE"
+		fi
+		$CONTROLLER &
+	else
+		if [ -x /usr/bin/logger ]; then
+			/usr/bin/logger -t $0 "missing $CONTROLLER for $DEVICE"
+		fi
+	fi
 fi
+
 if [ -x /usr/bin/logger ]; then
 	/usr/bin/logger -t $0 "leaving"
 fi
Applied
#1 lore raw

At Wed, 3 Dec 2003 23:08:19 +0100,

Quoted 5 lines · Karsten Wiese

[1 <text/plain; us-ascii (7bit)>]
Hi Takashi,

please commit. thanks!

applied. thanks.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/