[Pkg-alsa-devel] Bug#620510: alsa-firmware-loaders: The file tascam_fw does not work due to wrong parameters

Simone Rossetto simros85 at gmail.com
Sat Apr 2 11:29:01 UTC 2011


Package: alsa-firmware-loaders
Version: 1.0.23-3+b1
Severity: important


The file /lib/udev/tascam_fw tries to load the first-stage firmware for the
soundcard but it does not work. The syslog reports something like this
"load usx2yloader/us122fw.ihx for 1604/8006/100 to /proc/bus/usb/004/005"
but the path /proc/bus/usb is empty.

If the source file usx2yloader/tascam_fw.in is edited substituting $DEVNAME
to $DEVICE and adding the parameter "-D $DEVNAME" at the end of line 58, the
first-stage firmware is correcly loaded into the soundcard and the log reports
/dev/bus/usb instead of /proc/bus/usb.

Attached to this bug report my patch for the source file.



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (12, 'unstable'), (12, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages alsa-firmware-loaders depends on:
ii  fxload                    0.0.20081013-1 Firmware download to EZ-USB device
ii  libasound2                1.0.23-2.1     shared library for ALSA applicatio
ii  libc6                     2.11.2-11      Embedded GNU C Library: Shared lib
ii  udev                      166-1          /dev/ and hotplug management daemo

alsa-firmware-loaders recommends no packages.

alsa-firmware-loaders suggests no packages.

-- no debconf information
-------------- next part --------------
Susbtituted $DEVICE with $DEVNAME in order to make this file
works with newer kernel.
--- a/usx2yloader/tascam_fpga.in
+++ b/usx2yloader/tascam_fpga.in
@@ -10,12 +10,12 @@
 
 if [ -x $LOADER ]; then
 	if [ -x /usr/bin/logger ]; then
-		/usr/bin/logger -t $0 "calling $LOADER for $DEVICE"
+		/usr/bin/logger -t $0 "calling $LOADER for $DEVNAME"
 	fi
 	$LOADER
 else
 	if [ -x /usr/bin/logger ]; then
-		/usr/bin/logger -t $0 "missing $LOADER for $DEVICE"
+		/usr/bin/logger -t $0 "missing $LOADER for $DEVNAME"
 	fi
 fi
 
@@ -33,12 +33,12 @@
 if [ $CONTROLLER != NOTUSED ]; then
 	if [ -x $CONTROLLER ]; then
 		if [ -x /usr/bin/logger ]; then
-			/usr/bin/logger -t $0 "starting $CONTROLLER for $DEVICE"
+			/usr/bin/logger -t $0 "starting $CONTROLLER for $DEVNAME"
 		fi
 		$CONTROLLER &
 	else
 		if [ -x /usr/bin/logger ]; then
-			/usr/bin/logger -t $0 "missing $CONTROLLER for $DEVICE"
+			/usr/bin/logger -t $0 "missing $CONTROLLER for $DEVNAME"
 		fi
 	fi
 fi
--- a/usx2yloader/tascam_fw.in
+++ b/usx2yloader/tascam_fw.in
@@ -53,8 +53,8 @@
 fi
 
 if [ -x /usr/bin/logger ]; then
-	/usr/bin/logger -t $0 "load $FIRMWARE for $PRODUCT to $DEVICE"
+	/usr/bin/logger -t $0 "load $FIRMWARE for $PRODUCT to $DEVNAME"
 fi
-$LOADER $FLAGS -s $LOADERFIRMWARE -I $FIRMWARE
+$LOADER $FLAGS -s $LOADERFIRMWARE -I $FIRMWARE -D $DEVNAME
 
 exit 0


More information about the Pkg-alsa-devel mailing list