All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]only start us428control if an us428 listens
@ 2003-12-03 22:08 Karsten Wiese
  2003-12-04 10:12 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Karsten Wiese @ 2003-12-03 22:08 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 47 bytes --]

Hi Takashi,

please commit. thanks!

Karsten



[-- Attachment #2: tascam_fpga.in.patch --]
[-- Type: text/x-diff, Size: 1506 bytes --]


Index: alsa-tools/usx2yloader/tascam_fpga.in
===================================================================
RCS file: /cvsroot/alsa/alsa-tools/usx2yloader/tascam_fpga.in,v
retrieving revision 1.2
diff -u -r1.2 tascam_fpga.in
--- alsa-tools/usx2yloader/tascam_fpga.in	2 Dec 2003 11:57:06 -0000	1.2
+++ alsa-tools/usx2yloader/tascam_fpga.in	3 Dec 2003 21:54:27 -0000
@@ -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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH]only start us428control if an us428 listens
  2003-12-03 22:08 [PATCH]only start us428control if an us428 listens Karsten Wiese
@ 2003-12-04 10:12 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2003-12-04 10:12 UTC (permalink / raw)
  To: Karsten Wiese; +Cc: alsa-devel

At Wed, 3 Dec 2003 23:08:19 +0100,
Karsten Wiese wrote:
> 
> [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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-04 10:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-03 22:08 [PATCH]only start us428control if an us428 listens Karsten Wiese
2003-12-04 10:12 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.