[alsa-devel] [Pkg-alsa-devel] Bug#436502: alsa-tools -> usx2yloader

Elimar Riesebieter riesebie at lxtec.de
Wed Sep 12 22:52:56 CEST 2007


On Tue, 11 Sep 2007 the mental interface of
Elimar Riesebieter told:

> Hi all,
> 
> according to Debian #436502 I am asking herefore if there are plans
> to port asx2yloader from the old hotplug to udev? Debian lenny/sid
> relies on udev only, though.
> 
> Thanks in advance

Attached is a patch for the Makefiles and an udev rule which should
work anyway. I don't have TASCAM US-122 usb hardware handy, so
I would be very pleased if someone could test it.

Thanks

Elimar


-- 
  Never make anything simple and efficient when a way 
  can be found to make it complex and wonderful ;-)
-------------- next part --------------
Make usx2yloader work with udev
-- Elimar Riesebieter <riesebie at lxtec.de>  Wed, 12 Sep 2007 18:21:16 +0200

diff -urd alsa-tools-1.0.14~/usx2yloader/Makefile.am alsa-tools-1.0.14/usx2yloader/Makefile.am
--- alsa-tools-1.0.14~/usx2yloader/Makefile.am	2007-06-04 13:27:26.000000000 +0200
+++ alsa-tools-1.0.14/usx2yloader/Makefile.am	2007-09-12 18:18:24.000000000 +0200
@@ -11,8 +11,8 @@
 
 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
+hotplug_files = tascam_fw tascam_fpga
+hotplugdir = /lib/udev
 hotplug_SCRIPTS = $(hotplug_files)
 
 
diff -urd alsa-tools-1.0.14~/usx2yloader/Makefile.in alsa-tools-1.0.14/usx2yloader/Makefile.in
--- alsa-tools-1.0.14~/usx2yloader/Makefile.in	2007-06-04 13:29:06.000000000 +0200
+++ alsa-tools-1.0.14/usx2yloader/Makefile.in	2007-09-12 18:17:58.000000000 +0200
@@ -166,8 +166,8 @@
 AM_CFLAGS = -DDATAPATH=\"$(datadir)/alsa/firmware/$(MYNAME)\"
 usx2yloader_SOURCES = usx2yloader.c
 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
+hotplug_files = tascam_fw tascam_fpga
+hotplugdir = /lib/udev
 hotplug_SCRIPTS = $(hotplug_files)
 all: all-am
 
-------------- next part --------------
###############################################################################
# Description:   udev rule to load TASCAM US-122 usb sound card.
# Author:        Elimar Riesebieter <riesebie at lxtec.de>
# Created:       Wed, 12 Sep 2007 17:05:25 +0200
# Last modified: Wed, 12 Sep 2007 17:07:00 +0200
# File:          /etc/udev/alsa-tools.rules
###############################################################################

# TASCAM US-122 usb sound card.
    SYSFS{idVendor}=="1604", SYSFS{idProduct}=="8000", RUN+="/lib/udev/tascam_fw"
    SYSFS{idVendor}=="1604", SYSFS{idProduct}=="8004", RUN+="/lib/udev/tascam_fw"
    SYSFS{idVendor}=="1604", SYSFS{idProduct}=="8006", RUN+="/lib/udev/tascam_fw"
    SYSFS{idVendor}=="1604", SYSFS{idProduct}=="8001", RUN+="/lib/udev/tascam_fpga"
    SYSFS{idVendor}=="1604", SYSFS{idProduct}=="8005", RUN+="/lib/udev/tascam_fpga"
    SYSFS{idVendor}=="1604", SYSFS{idProduct}=="8007", RUN+="/lib/udev/tascam_fpga"

# vim:tw=160:syntax=udevrules



More information about the Alsa-devel mailing list