Adding the line
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && { /usr/sbin/alsactl restore; }
Will make the mixer state get restored, but you still need to add the modules to /etc/rc.conf. /etc/rc.sysinit loads each module from that array with /sbin/modprobe, which reads /etc/modprobe.conf for its config.
/dev/dsp is created by devfsd when the snd-<card> module is loaded I believe. Either that or the snd-pcm-oss module.
]]>Thanks
Bruce :?
]]>MODULES=(snd-intel8x0 snd-mixer-oss snd-seq-oss snd-pcm-oss)
Mixer settings are restored from rc.local
aumix -w 50 -v 85 -c 50
modules.conf:
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-cs4236 #change this to your own driver
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/dsp sound-service-0-3
alias /dev/sequencer sound-service-0-1
alias /dev/mixer sound-service-0-0
devfsd.conf
REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660
I am having the same problems .....I have no /etc/devfs.d file or dir whats going on?
Mr Green :mrgreen:
]]>LOOKUP snd MODLOAD ACTION snd
LOOKUP dsp MODLOAD
LOOKUP mixer MODLOAD
LOOKUP midi MODLOAD
REGISTER sound/.* PERMISSIONS root.users 0660
REGISTER snd/.* PERMISSIONS root.users 0660
DISCLAIMER: It works for me. I think there are other posts on the forum that may have other and/or better examples.
After you make changes to /etc/devfsd.conf, you can restart the daemon with
kill -HUP <pid of devfsd>
.
HTH,
farphel
alias char-major-116* snd
options snd cards_limit=1
alias snd-card-0 snd-via82xx
alias char-major-14* soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/sound/dsp snd-pcm-oss
alias /dev/sound/sequencer snd-seq-oss
alias /dev/sound/mixer snd-mixer-oss
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx && { /usr/sbin/alsactl restore; }
My config, replace intel8x0 with your sound card & it should work :
alias char-major-116* snd options snd cards_limit=1 alias snd-card-0 snd-intel8x0 alias char-major-14* soundcore alias sound-slot-0 snd-card-0 alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss alias /dev/sound/dsp snd-pcm-oss alias /dev/sound/sequencer snd-seq-oss alias /dev/sound/mixer snd-mixer-oss install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && { /usr/sbin/alsactl restore; }
Thanks it worked.
Farphel, I already had the modules in my rc.conf, but thanks anyway.
]]>MODULES=(!usbserial !ide-scsi snd-via82xx snd-mixer-oss snd-seq-oss snd-pcm-oss)
Your /etc/devfsd.conf needs to be set up correctly to link /dev/dsp to the appropriate devfs entry.
]]>alias char-major-116* snd
options snd cards_limit=1
alias snd-card-0 snd-intel8x0
alias char-major-14* soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/sound/dsp snd-pcm-oss
alias /dev/sound/sequencer snd-seq-oss
alias /dev/sound/mixer snd-mixer-oss
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && { /usr/sbin/alsactl restore; }
#
# /etc/modprobe.conf (for v2.6 kernels)
#
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
# Sound lookup entries for devfs support
alias /dev/dsp sound-service-0-3
alias /dev/sequencer sound-service-0-1
alias /dev/mixer sound-service-0-0
# End of file
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-via82xx
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
When I login (as user or root) I get the dreaded no dev/dsp error.
Now if I ls -la in /dev, I see no dsp file/directory, however, if i touch /dev/dsp I get an access denied error (as root).
If I lsmod I get the following listed, so the modules appear to load ok.
snd_pcm_oss 49412 0
snd_mixer_oss 17056 1 snd_pcm_oss
snd_via82xx 22688 0
snd_pcm 91168 2 snd_pcm_oss,snd_via82xx
snd_timer 22532 1 snd_pcm
snd_ac97_codec 52900 1 snd_via82xx
snd_page_alloc 9220 2 snd_via82xx,snd_pcm
snd_mpu401_uart 6432 1 snd_via82xx
snd_rawmidi 20768 1 snd_mpu401_uart
snd_seq_device 6504 1 snd_rawmidi
snd 46596 9 snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_pcm,snd_timer,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 7456 1 snd