[Pkg-alsa-devel] Bug#844501: alsa-firmware-loaders: udev rule causes race condition which blocks us-122 initialisation (with fix!)
Jaime T
enopatch at gmail.com
Wed Nov 16 13:34:48 UTC 2016
On 16 November 2016 at 10:50, jaimet <enopatch at gmail.com> wrote:
> My udev-fu is very weak, but after stumbling around with "udevadm
> monitor" for a bit, I replaced that udev rule line with:
>
> SUBSYSTEM=="sound", ACTION=="add", KERNEL=="hwC2D0", RUN+="/lib/udev/tascam_fpga"
It now appears that my udev-fu is even weaker than I thought: "hwC2D0"
is obviously an "arbitrary-card-ordering-dependent" reference which
breaks if my sound cards are discovered in a different order. A much
better alternative (that is *not* order-dependent) is:
SUBSYSTEM=="sound", ACTION=="add", ATTR{id}=="USX2Y",
RUN+="/lib/udev/tascam_fpga"
Apologies for the noise. J :-)
More information about the Pkg-alsa-devel
mailing list