On Saturday, May 4, 2002 18:23, Matthias Debus wrote:
> since last initscripts update, i can't hear any sound of my alsa modules.
> furthermore, mixer settings aren't saved (everything is muted).
>
> any ideas?
Does this patch help? Just some changes I made to my own alsa init script.
Your mixer problem was being caused by an (unnecessary?) "|| exit 0" on line
106. The rest of the patch replaces occurences of snd-card- with snd-
--Bernardo
--- etc/rc.d/init.d/alsa 2002-05-05 16:12:51.000000000 -0400
+++ /etc/rc.d/init.d/alsa 2002-05-04 19:39:39.000000000 -0400
@@ -72,7 +72,7 @@
awk '/^((alias)|(probe)) +(sound|snd)-(slot|card)-[0-9]/ {print $3}' /etc/modules.conf | ( \
while read line; do
- [[ $line != snd-card-* ]] && continue
+ [[ $line != snd-* ]] && continue
found_driver="found"
desc=`echo $line | cut -d- -f 3`
if /sbin/modprobe snd-$line >/dev/null 2>&1; then
@@ -103,7 +103,7 @@
exit 1
;;
esac
- ) || exit 0
+ )
#
# Enabling sound devices for alsactl.
@@ -207,7 +207,7 @@
start)
# Start driver.
if [ ! -d /proc/asound ]; then
- if egrep -qs "^alias( |\t)+(snd|sound)-(card|slot)-[0-9]( |\t)+snd-card-" /etc/modules.conf;then
+ if egrep -qs "^alias( |\t)+(snd|sound)-(card|slot)-[0-9]( |\t)+snd-" /etc/modules.conf;then
start && startoss
touch /var/lock/subsys/alsa
fi