ALSA udev rules

Miguel Bazdresch lfs-01 at
Tue Jul 4 16:10:49 PDT 2006

* Dan Nicholson <dbn.lists at> [2006-07-04 17:47]:
> On 7/3/06, Miguel Bazdresch <lfs-01 at> wrote:
> >
> >KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore
> >%n"
> >
> >is missing a NAME="/snd/%k".
> >
> >As it stands, the controlC[0-9] devices are being created in /dev, not
> >in /dev/snd. This was in the book at some point and was removed.
> That's because it's in the stock LFS rules. The BLFS rules just need
> to run the userspace tools. I don't know if this is the absolute most
> recent LFS udev rules, but I have this in 25-lfs.rules.
> # ALSA devices go in their own subdirectory
> KERNEL=="controlC[0-9]*", NAME="snd/%k", GROUP="audio"
> KERNEL=="hw[CD0-9]*",	 NAME="snd/%k", GROUP="audio"
> KERNEL=="pcm[CD0-9cp]*",  NAME="snd/%k", GROUP="audio"
> KERNEL=="midiC[D0-9]*",	 NAME="snd/%k", GROUP="audio"
> KERNEL=="timer",		     NAME="snd/%k", GROUP="audio"
> KERNEL=="seq",		     NAME="snd/%k", GROUP="audio"

Sorry about the oversight. I've been waiting for the udev stuff to
settle in LFS and I hadn't looked at the rules lately.

In any case, most of the BLFS alsa rules seem to be redundant, don't
they? All the rules you list above are repeated in BLFS's alsa rules.
Are they really needed in BLFS?

Miguel Bazdresch

More information about the blfs-dev mailing list