Jim Gifford wrote:
ALSA and other sound devices: entire section


Looking around to see how others handle the sound stuff

A draft proposal attached (of course, this should be split into two files, one for naming and one for volumes).

It correctly names sound devices and assigns permissions. It restores ALSA volumes, or, if it looks like ALSA is not used at all, OSS volumes (specially for Archaic if he still uses the proprietary nvsound module).

Things not done:

1) stable naming of OSS mixers.
2) ALSA-specific firmware loading

--
Alexander E. Patrakov
Don't mail to [EMAIL PROTECTED]: the server is off until 2006-01-11
Use my GMail or linuxfromscratch address instead
# 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"

# Sound devices

KERNEL=="admmidi*",                      GROUP="audio"
KERNEL=="adsp*",                         GROUP="audio"
KERNEL=="aload*",                        GROUP="audio"
KERNEL=="amidi*",                        GROUP="audio"
KERNEL=="amixer*",                       GROUP="audio"
KERNEL=="audio*",                        GROUP="audio"
KERNEL=="dmfm*",                         GROUP="audio"
KERNEL=="dmmidi*",                       GROUP="audio"
KERNEL=="dsp*",                          GROUP="audio"
KERNEL=="midi*",                         GROUP="audio"
KERNEL=="mixer*",                        GROUP="audio"
KERNEL=="music",                         GROUP="audio"
KERNEL=="sequencer*",                    GROUP="audio"

# Restore ALSA volumes
KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"

# Restore OSS volumes when the driver is not snd-pcm-oss
# Probably useful for nvsound driver users
KERNEL=="mixer*", ACTION=="add", RUN+="/bin/sh -c 'if [ ! -d /sys/module/snd ] 
; then HOME=/root /usr/bin/aumix -d /dev/%k -L -f /etc/aumixrc.%k ; fi'"
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to