Hello,

I propose to add a new paragraph/section explaining the kernel setup for ALSA. IMHO it is OK to mention the alternatives: in-kernel and external ALSA drivers.

In both cases, if ALSA is modular, please create the following file and save it as /etc/modprobe.d/alsa:

# Load optional modules above their base modules
# NOTE: doesn't work if CONFIG_SND_PCM=Y and CONFIG_SND_PCM_OSS=M
install snd-pcm modprobe -i snd-pcm && { modprobe snd-pcm-oss ; : ; }
install snd-mixer modprobe -i snd-mixer && { modprobe snd-mixer-oss ; : ; }
install snd-seq modprobe -i snd-seq && { modprobe snd-seq-midi ; modprobe snd-seq-oss ; : ; }

I think we should copy (but not remove) this information from LFS because ALSA is used only as example there.

Debian's snippet of modprobe.conf also contains this:

# Prevent abnormal drivers from grabbing index 0
options snd-atiixp-modem index=-2
options snd-bt87x index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2

Relevant bug sympthoms: GNOME mixer applet doesn't show any volume controls because it thinks that the winmodem or bttv is the primary soundcard. However, for ALSA-1.0.9 (drivers), this is no longer needed because modem and bttv drivers will never become the default soundcard, see changelog at http://www.alsa-project.org/changes/v1-0-8--v1-0-9.txt

Also, please change the volume restoration script a bit:

1) In the udev rule, change RUN= to RUN+=, in order to preserve RUN targets added by other rules. 2) Move "sleep 1" to the very bottom in the loop, so that it is not unconditional. 3) Use x=$(( $x + 1 )) instead of `expr ${x} + 1` because of /usr/bin/expr and the fact that /bin/sh may be a non-bash.

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to