alsa-firmware udev rule for usx2yloader: wrong filenames and collision

Bug #364769 reported by ^rooker
2
Affects Status Importance Assigned to Milestone
Medibuntu
Fix Released
Low
Lionel Le Folgoc
Hardy
Fix Released
Low
Lionel Le Folgoc
Intrepid
Fix Released
Low
Lionel Le Folgoc
Jaunty
Fix Released
Low
Lionel Le Folgoc
Karmic
Fix Released
Low
Lionel Le Folgoc
Lucid
Fix Released
Low
Lionel Le Folgoc

Bug Description

1) The current medibuntu package "alsa-firmware" provides a udev rule for Tascam devices (requiring usx2yloader):
"/etc/udev/rules.d/55-usx2yloader.rules", which collides with "alsa-firmware-loaders.rules" provided by Ubuntu's "alsa-firmware-loaders" package (which is still broken, btw).

If using the medibuntu "alsa-firmware" package, the symlink "z55_alsa-firmware-loaders.rules" must be removed:
----------------
"$ sudo rm /etc/udev/rules.d/z55_alsa-firmware-loaders.rules"
----------------

2) Inside "/etc/udev/rules.d/55-usx2yloader.rules", a non-existent (old?) tascam firmware loader "ld2-ezusb.hex" is referred to:
----------------
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8000", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/sbin/fxload -D %N -s /lib/firmware/usx2yloader/ld2-ezusb.hex -I /lib/firmware/usx2yloader/us428fw.ihx'"
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8006", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/sbin/fxload -D %N -s /lib/firmware/usx2yloader/ld2-ezusb.hex -I /lib/firmware/usx2yloader/us122fw.ihx'"
----------------

These udev rules must be changed to point to "tascam_loader.ihx" instead, in order to function properly:
----------------
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8000", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/sbin/fxload -D %N -s /lib/firmware/usx2yloader/tascam_loader.ihx -I /lib/firmware/usx2yloader/us428fw.ihx'"
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8006", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/sbin/fxload -D %N -s /lib/firmware/usx2yloader/tascam_loader.ihx -I /lib/firmware/usx2yloader/us122fw.ihx'"
----------------

Revision history for this message
^rooker (rooker) wrote :
description: updated
Revision history for this message
^rooker (rooker) wrote :

Meanwhile, I think I've found a better way to fix this:

1) alsa-firmware should not install the udev rule at all, since it's already provided by alsa-firmware-loader (which is a dependency of alsa-firmware)

2) Let /usr/share/alsa/firmware point to /lib/firmware as a downwards compatibility option for outdated scripts.
(I know it's a kind of workaround, but...)

Changed in medibuntu:
assignee: nobody → translator-duckburg
status: New → In Progress
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Uploaded in hardy-staging.

Changed in medibuntu:
assignee: ^rooker (rooker) → Lionel Le Folgoc (mrpouit)
importance: Undecided → Low
status: In Progress → Fix Committed
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Moved to hardy.
Probably still needs to be fixed for the other releases.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Pushed to stable.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.