* [PATCH]usx2yloader hotplugging in HEAD
@ 2003-12-02 8:31 Karsten Wiese
2003-12-02 10:05 ` Takashi Iwai
0 siblings, 1 reply; 6+ messages in thread
From: Karsten Wiese @ 2003-12-02 8:31 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
Hi Takashi,
Please commit this to reenable usx2yloader hotplugging:
>>>
Index: alsa-tools/usx2yloader/tascam_fw
===================================================================
RCS file: /cvsroot/alsa/alsa-tools/usx2yloader/tascam_fw,v
retrieving revision 1.1
diff -u -r1.1 tascam_fw
--- alsa-tools/usx2yloader/tascam_fw 23 Sep 2003 14:16:23 -0000 1.1
+++ alsa-tools/usx2yloader/tascam_fw 2 Dec 2003 07:46:08 -0000
@@ -3,7 +3,7 @@
# load the firmware into Tascam USB devices
FIRMWARE=
-FIRMWAREDIR=/usr/local/share/alsa/firmware
+FIRMWAREDIR=/usr/local/share/alsa/firmware/usx2yloader
FLAGS=
LOADER=/sbin/fxload
LOADERFIRMWARE=$FIRMWAREDIR/tascam_loader.ihx
<<<
Later there should also be some magic to (not) include the "/local" substring,
I don't know yet how to do that; anybody?
Thanks,
Karsten
-------------------------------------------------------
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] 6+ messages in thread
* Re: [PATCH]usx2yloader hotplugging in HEAD
2003-12-02 8:31 [PATCH]usx2yloader hotplugging in HEAD Karsten Wiese
@ 2003-12-02 10:05 ` Takashi Iwai
2003-12-02 10:35 ` Clemens Ladisch
2003-12-02 11:30 ` Karsten Wiese
0 siblings, 2 replies; 6+ messages in thread
From: Takashi Iwai @ 2003-12-02 10:05 UTC (permalink / raw)
To: Karsten Wiese; +Cc: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 1046 bytes --]
At Tue, 2 Dec 2003 09:31:32 +0100,
Karsten Wiese wrote:
>
> Hi Takashi,
>
> Please commit this to reenable usx2yloader hotplugging:
> >>>
> Index: alsa-tools/usx2yloader/tascam_fw
> ===================================================================
> RCS file: /cvsroot/alsa/alsa-tools/usx2yloader/tascam_fw,v
> retrieving revision 1.1
> diff -u -r1.1 tascam_fw
> --- alsa-tools/usx2yloader/tascam_fw 23 Sep 2003 14:16:23 -0000 1.1
> +++ alsa-tools/usx2yloader/tascam_fw 2 Dec 2003 07:46:08 -0000
> @@ -3,7 +3,7 @@
> # load the firmware into Tascam USB devices
>
> FIRMWARE=
> -FIRMWAREDIR=/usr/local/share/alsa/firmware
> +FIRMWAREDIR=/usr/local/share/alsa/firmware/usx2yloader
> FLAGS=
> LOADER=/sbin/fxload
> LOADERFIRMWARE=$FIRMWAREDIR/tascam_loader.ihx
> <<<
>
> Later there should also be some magic to (not) include the "/local" substring,
> I don't know yet how to do that; anybody?
fixed on cvs.
tascam_fw and tascam_fpga will be generated via configure script now.
the diff is attached below. please give a try.
Takashi
[-- Attachment #2: Type: text/plain, Size: 3846 bytes --]
Index: alsa-tools/usx2yloader/.cvsignore
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-tools/usx2yloader/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- alsa-tools/usx2yloader/.cvsignore 8 Sep 2003 11:07:43 -0000 1.1
+++ alsa-tools/usx2yloader/.cvsignore 2 Dec 2003 09:59:10 -0000 1.2
@@ -12,3 +12,5 @@
depcomp
.deps
autom4te.cache
+tascam_fpga
+tascam_fw
Index: alsa-tools/usx2yloader/Makefile.am
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-tools/usx2yloader/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- alsa-tools/usx2yloader/Makefile.am 25 Nov 2003 17:35:01 -0000 1.6
+++ alsa-tools/usx2yloader/Makefile.am 2 Dec 2003 09:59:11 -0000 1.7
@@ -9,7 +9,7 @@
usx2yloader_SOURCES = usx2yloader.c
-EXTRA_DIST = depcomp tascam_fw.usermap tascam_fw tascam_fpga
+EXTRA_DIST = depcomp tascam_fw.usermap tascam_fw.in tascam_fpga.in
hotplug_files = tascam_fw.usermap tascam_fw tascam_fpga
hotplugdir = /etc/hotplug/usb
Index: alsa-tools/usx2yloader/configure.in
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-tools/usx2yloader/configure.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- alsa-tools/usx2yloader/configure.in 25 Nov 2003 16:44:31 -0000 1.3
+++ alsa-tools/usx2yloader/configure.in 2 Dec 2003 09:59:11 -0000 1.4
@@ -8,4 +8,4 @@
CFLAGS="$CFLAGS $ALSA_CFLAGS"
LDFLAGS="$LDFLAGS $ALSA_LIBS"
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile tascam_fpga tascam_fw)
Index: alsa-tools/usx2yloader/tascam_fpga.in
===================================================================
RCS file: alsa-tools/usx2yloader/tascam_fpga.in
diff -N alsa-tools/usx2yloader/tascam_fpga.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ alsa-tools/usx2yloader/tascam_fpga.in 2 Dec 2003 09:59:11 -0000 1.1
@@ -0,0 +1,18 @@
+#!/bin/sh
+# load the firmware into Tascam USB devices (FPGA design)
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+
+LOADER=@bindir@/usx2yloader
+
+if [ -x /usr/bin/logger ]; then
+ /usr/bin/logger -t $0 "calling $LOADER for $DEVICE"
+fi
+$LOADER
+@bin@/us428control &
+if [ -x /usr/bin/logger ]; then
+ /usr/bin/logger -t $0 "leaving"
+fi
+
+exit 0
Index: alsa-tools/usx2yloader/tascam_fw.in
===================================================================
RCS file: alsa-tools/usx2yloader/tascam_fw.in
diff -N alsa-tools/usx2yloader/tascam_fw.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ alsa-tools/usx2yloader/tascam_fw.in 2 Dec 2003 09:59:11 -0000 1.1
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+# load the firmware into Tascam USB devices
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+
+FIRMWARE=
+FIRMWAREDIR=@datadir@/alsa/firmware/usx2yloader
+FLAGS=
+LOADER=/sbin/fxload
+LOADERFIRMWARE=$FIRMWAREDIR/tascam_loader.ihx
+
+case $PRODUCT in
+1604/8000/*)
+ FIRMWARE=$FIRMWAREDIR/us428fw.ihx
+ ;;
+1604/8004/*)
+ FIRMWARE=$FIRMWAREDIR/us224fw.ihx
+ ;;
+1604/8006/*)
+ FIRMWARE=$FIRMWAREDIR/us122fw.ihx
+ ;;
+*)
+ if [ -x /usr/bin/logger ]; then
+ /usr/bin/logger -t $0 "unknown product $PRODUCT"
+ fi
+ exit 1
+esac
+
+# missing loader firmware?
+if [ ! -r $LOADERFIRMWARE ]; then
+ if [ -x /usr/bin/logger ]; then
+ /usr/bin/logger -t $0 "missing $LOADERFIRMWARE ??"
+ fi
+ exit 1
+fi
+
+# missing firmware?
+if [ ! -r $FIRMWARE ]; then
+ if [ -x /usr/bin/logger ]; then
+ /usr/bin/logger -t $0 "missing $FIRMWARE for $PRODUCT ??"
+ fi
+ exit 1
+fi
+
+# missing loader?
+if [ ! -x $LOADER ]; then
+ if [ -x /usr/bin/logger ]; then
+ /usr/bin/logger -t $0 "missing $LOADER ??"
+ fi
+ exit 1
+fi
+
+if [ -x /usr/bin/logger ]; then
+ /usr/bin/logger -t $0 "load $FIRMWARE for $PRODUCT to $DEVICE"
+fi
+$LOADER $FLAGS -s $LOADERFIRMWARE -I $FIRMWARE
+
+exit 0
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: [PATCH]usx2yloader hotplugging in HEAD
2003-12-02 10:05 ` Takashi Iwai
@ 2003-12-02 10:35 ` Clemens Ladisch
2003-12-02 10:39 ` Takashi Iwai
2003-12-02 11:30 ` Karsten Wiese
1 sibling, 1 reply; 6+ messages in thread
From: Clemens Ladisch @ 2003-12-02 10:35 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Karsten Wiese, alsa-devel
Takashi Iwai wrote:
> Karsten Wiese wrote:
> >
> > Later there should also be some magic to (not) include the "/local" substring,
> > I don't know yet how to do that; anybody?
>
> fixed on cvs.
> tascam_fw and tascam_fpga will be generated via configure script now.
Such scripts should not be generated by configure but by the Makefile.
For the reason and an example, see
http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_node/autoconf_24.html
Regards,
Clemens
-------------------------------------------------------
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] 6+ messages in thread
* Re: Re: [PATCH]usx2yloader hotplugging in HEAD
2003-12-02 10:35 ` Clemens Ladisch
@ 2003-12-02 10:39 ` Takashi Iwai
2003-12-02 16:16 ` Takashi Iwai
0 siblings, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2003-12-02 10:39 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: Karsten Wiese, alsa-devel
At Tue, 02 Dec 2003 11:35:47 +0100 (MET),
Clemens Ladisch wrote:
>
> Takashi Iwai wrote:
>
> > Karsten Wiese wrote:
> > >
> > > Later there should also be some magic to (not) include the "/local" substring,
> > > I don't know yet how to do that; anybody?
> >
> > fixed on cvs.
> > tascam_fw and tascam_fpga will be generated via configure script now.
>
> Such scripts should not be generated by configure but by the Makefile.
> For the reason and an example, see
> http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_node/autoconf_24.html
well, it means that the direct use $datadir is not adequet for C,
etc. but for shell script it's ok - although it'd be better to define
such a path explicitly. i'll work on it.
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] 6+ messages in thread
* Re: [PATCH]usx2yloader hotplugging in HEAD
2003-12-02 10:05 ` Takashi Iwai
2003-12-02 10:35 ` Clemens Ladisch
@ 2003-12-02 11:30 ` Karsten Wiese
1 sibling, 0 replies; 6+ messages in thread
From: Karsten Wiese @ 2003-12-02 11:30 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
Am Dienstag, 2. Dezember 2003 11:05 schrieb Takashi Iwai:
> At Tue, 2 Dec 2003 09:31:32 +0100,
>
>
> fixed on cvs.
> tascam_fw and tascam_fpga will be generated via configure script now.
> the diff is attached below. please give a try.
>
Tried succesfully!
Thanks,
Karsten
-------------------------------------------------------
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] 6+ messages in thread
* Re: Re: [PATCH]usx2yloader hotplugging in HEAD
2003-12-02 10:39 ` Takashi Iwai
@ 2003-12-02 16:16 ` Takashi Iwai
0 siblings, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2003-12-02 16:16 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: Karsten Wiese, alsa-devel
At Tue, 02 Dec 2003 11:39:52 +0100,
I wrote:
>
> At Tue, 02 Dec 2003 11:35:47 +0100 (MET),
> Clemens Ladisch wrote:
> >
> > Takashi Iwai wrote:
> >
> > > Karsten Wiese wrote:
> > > >
> > > > Later there should also be some magic to (not) include the "/local" substring,
> > > > I don't know yet how to do that; anybody?
> > >
> > > fixed on cvs.
> > > tascam_fw and tascam_fpga will be generated via configure script now.
> >
> > Such scripts should not be generated by configure but by the Makefile.
> > For the reason and an example, see
> > http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_node/autoconf_24.html
>
> well, it means that the direct use $datadir is not adequet for C,
> etc. but for shell script it's ok - although it'd be better to define
> such a path explicitly. i'll work on it.
it turned out that we need define $bindir too.
but i don't think it's worthy to add extra options for that.
so, i think the current style is ok.
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] 6+ messages in thread
end of thread, other threads:[~2003-12-02 16:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-02 8:31 [PATCH]usx2yloader hotplugging in HEAD Karsten Wiese
2003-12-02 10:05 ` Takashi Iwai
2003-12-02 10:35 ` Clemens Ladisch
2003-12-02 10:39 ` Takashi Iwai
2003-12-02 16:16 ` Takashi Iwai
2003-12-02 11:30 ` Karsten Wiese
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.