mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-28 05:40:23 -04:00
- generate tascam_fw and tascam_fpga via configure script.
This commit is contained in:
parent
42a5cda363
commit
97c544fe65
4 changed files with 14 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ bin_PROGRAMS = usx2yloader
|
|||
|
||||
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
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ AM_PATH_ALSA(1.0.0)
|
|||
CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
||||
LDFLAGS="$LDFLAGS $ALSA_LIBS"
|
||||
|
||||
AC_OUTPUT(Makefile)
|
||||
AC_OUTPUT(Makefile tascam_fpga tascam_fw)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,18 @@
|
|||
#!/bin/sh
|
||||
# load the firmware into Tascam USB devices (FPGA design)
|
||||
|
||||
LOADER=/usr/local/bin/usx2yloader
|
||||
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
|
||||
/usr/local/bin/us428control&
|
||||
@bin@/us428control &
|
||||
if [ -x /usr/bin/logger ]; then
|
||||
/usr/bin/logger -t $0 "leaving"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
@ -2,8 +2,11 @@
|
|||
|
||||
# load the firmware into Tascam USB devices
|
||||
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
|
||||
FIRMWARE=
|
||||
FIRMWAREDIR=/usr/local/share/alsa/firmware
|
||||
FIRMWAREDIR=@datadir@/alsa/firmware/usx2yloader
|
||||
FLAGS=
|
||||
LOADER=/sbin/fxload
|
||||
LOADERFIRMWARE=$FIRMWAREDIR/tascam_loader.ihx
|
||||
|
|
@ -53,3 +56,5 @@ 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue