Update of /cvsroot/alsa/alsa-tools/usx2yloader
In directory sc8-pr-cvs1:/tmp/cvs-serv911

Modified Files:
        tascam_fpga.in 
Log Message:
Karsten Wiese <[EMAIL PROTECTED]>:

- start us428control only for specific devices.



Index: tascam_fpga.in
===================================================================
RCS file: /cvsroot/alsa/alsa-tools/usx2yloader/tascam_fpga.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- tascam_fpga.in      2 Dec 2003 11:57:06 -0000       1.2
+++ tascam_fpga.in      4 Dec 2003 09:41:10 -0000       1.3
@@ -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.
 
 [EMAIL PROTECTED]@
 [EMAIL PROTECTED]@
 
 [EMAIL PROTECTED]@/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/*)
+       [EMAIL PROTECTED]@/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



-------------------------------------------------------
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/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to