On 9/14/07, j t <mark473@xxxxxxxxx> wrote: > > Ooops, sorry - my bad... :-( I included the wrong line. Try this: > > ACTION=="add", SUBSYSTEM=="usb_device", SYSFS{idProduct}=="8007", > SYSFS{idVendor}=="1604", RUN+="/usr/bin/usx2yloader" > > That's better :-) Thanks. Based on your advice and a little plodding through udev rules and /lib/udev files, I've come up with a new and improved rule set that only tries to load the firmware once, and loads it just for the device being probed. Mike Bourgeous
# Tascam US-x2y Firmware Script by Mike Bourgeous <nitrogen at users.sourceforge.net> # Based on http://www.astro.caltech.edu/~mcs/tascam_us122/index.html as well as information # received on the alsa-devel mailing list. ### US-428 ### # Load firmware # BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8000", SYSFS{idVendor}=="1604", \ RUN+="/bin/sh -c '/sbin/fxload -D %N -v -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx -I /usr/share/alsa/firmware/usx2yloader/us428fw.ihx'" # Load fpga # ACTION=="add", SUBSYSTEM=="usb_device", SYSFS{idProduct}=="8001", SYSFS{idVendor}=="1604", IMPORT{program}="usb_device_name --export %k", \ RUN+="/bin/sh -c 'export _USBPATH=/proc/bus/usb/$env{USB_BUS}/$env{USB_DEV}; /usr/bin/usx2yloader -u $$_USBPATH; /usr/bin/us428control -u $$_USBPATH -m us428 &'" ### US-224 ### # Load firmware # BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8004", SYSFS{idVendor}=="1604", \ RUN+="/bin/sh -c '/sbin/fxload -D %N -v -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx -I /usr/share/alsa/firmware/usx2yloader/us224fw.ihx'" # Load fpga # ACTION=="add", SUBSYSTEM=="usb_device", SYSFS{idProduct}=="8005", SYSFS{idVendor}=="1604", IMPORT{program}="usb_device_name --export %k", \ RUN+="/bin/sh -c 'export _USBPATH=/proc/bus/usb/$env{USB_BUS}/$env{USB_DEV}; /usr/bin/usx2yloader -u $$_USBPATH; /usr/bin/us428control -u $$_USBPATH -m us224 &'" ### US-122 ### # Load firmware # BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8006", SYSFS{idVendor}=="1604", \ RUN+="/bin/sh -c '/sbin/fxload -D %N -v -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx -I /usr/share/alsa/firmware/usx2yloader/us122fw.ihx'" # Load fpga # ACTION=="add", SUBSYSTEM=="usb_device", SYSFS{idProduct}=="8007", SYSFS{idVendor}=="1604", IMPORT{program}="usb_device_name --export %k", \ RUN+="/bin/sh -c 'export _USBPATH=/proc/bus/usb/$env{USB_BUS}/$env{USB_DEV}; /usr/bin/usx2yloader -u $$_USBPATH'" # vim: syntax=sh
_______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel