ALSA udev rules

Dan Nicholson dbn.lists at gmail.com
Mon Jul 3 23:28:18 PDT 2006


On 7/3/06, Miguel Bazdresch <lfs-01 at thewizardstower.org> 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"

--
Dan



More information about the blfs-dev mailing list