On 16 November 2016 at 10:50, jaimet <enopa...@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 :-)

Reply via email to