Click to See Complete Forum and Search --> : ALSA won't load soundcard on boot


rda918
10-01-2004, 12:11 AM
Hi, I am running Slackware 10.0 with Kernel 2.6.7
I have an Ensonique Audio PCI card that I am trying to get working with ALSA. Actually, I have got it working; I can get it working with a simple alsaconf but I have to do it everytime I reboot. It seems when alsaconf edits my /etc/modules.conf nothing really happens. I think it really edits /etc/modprobe.conf. Not sure so I'll list the contents of both....

Here is my /etc/modules.conf

alias snd_ens1371


Here is my /etc/modprobe.conf

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.6 ---
alias snd-card-0 snd-ens1371
alias sound-slot-0 snd-ens1371
# --- END: Generated by ALSACONF, do not edit. ---


Here is the modules loaded *after* I do an alsaconf

bash-2.05b$ lsmod
Module Size Used by
snd_ens1371 19272 3
snd_rawmidi 19396 1 snd_ens1371
snd_seq_device 6216 1 snd_rawmidi
snd_pcm 78760 2 snd_ens1371
snd_page_alloc 8584 1 snd_pcm
snd_timer 20292 1 snd_pcm
snd_ac97_codec 59748 1 snd_ens1371
snd 42180 11 snd_ens1371,snd_rawmidi,snd_seq_device,snd_pcm,snd _timer,snd_ac97_codec
soundcore 7008 1 snd
tulip 41504 0


I have all sound options compiled as modules. Nothing is compiled directly into the kernel. Anyone know what I can do to make ALSA load my card at boot? Thanks in advance

gehidore
10-01-2004, 02:00 AM
did you add it to the 'default' run level?

retsaw
10-01-2004, 03:40 AM
I would suggest first checking hotplug get executed on startup as that should load all needed modules automatically and if it is, you could add a command to modprobe the modules for your soundcard in your /etc/rc.d/rc.local, as a workaround to load them on every bootup.

Personally I compile everything that I will always need directly into the kernel and don't get this problem.

bathory
10-01-2004, 05:08 AM
Use:
install snd-card-0 /sbin/modprobe --ignore-install snd-card-0 && { /usr/sbin/alsactl restore >/dev/null 2>&1 || :; }
remove snd-card-0 { /usr/sbin/alsactl store >/dev/null 2>&1 || :; } ; /sbin/modprobe -r --ignore-remove snd-card-0
to keep the settings.
But I have another problem with that. When I boot (in command line) the alsamixer settings are OK. After startx, alsamixer is reset!!!