Hi,
I am still trying to load a sound font automatically.
I am using devfs
In /etc/devfsd.conf I have:
# Enable full compatibility mode for old device names
REGISTER .* MKOLDCOMPAT
UNREGISTER .* RMOLDCOMPAT
# Gives r/w permissions on sound devices
LOOKUP snd MODLOAD ACTION snd
REGISTER ^sound/.* PERMISSIONS root.audio 660
REGISTER ^snd/.* PERMISSIONS root.audio 660
In /etc/modules I have the line:
snd-seq-oss
My /etc/modules.conf:
# ALSA specific settings
alias char-major-116 snd
alias snd-card-0 snd-emu10k1
# OSS compatibility
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
# Options
options snd-emu10k1 snd_index=0 snd_id="SBLIVE" snd_enable=1
# "snd_cards_limit=1": if not the system is looking for a second sound card
options snd snd_cards_limit=1 snd_device_mode=0666 snd_device_gid=17 snd_device_uid=0
pre-remove snd /usr/sbin/alsactl store
post-install snd /usr/sbin/alsactl restore
# Load sound font
#post-install snd-seq /usr/local/bin/sfxload /usr/share/sounds/sf2/8mbgmsfx.sf2
post-install snd-emu10k1-synth /usr/local/bin/sfxload
/usr/share/sounds/sf2/8mbgmsfx.sf2
When I put in /etc/modules.conf:
"post-install snd-seq /usr/local/bin/sfxload /usr/share/sounds/sf2/8mbgmsfx.sf2"
snd-seq-oss is not loaded, /dev/sequencer is not created, /var/log/messages says
nothing
$ /sbin/lsmod
snd-seq 37228 0 (unused)
snd-emu10k1 58720 0 (autoclean)
snd-hwdep 3616 0 (autoclean) [snd-emu10k1]
snd-rawmidi 12256 0 (autoclean) [snd-emu10k1]
snd-seq-device 4128 0 (autoclean) [snd-seq snd-emu10k1 snd-rawmidi]
snd-ac97-codec 22976 0 (autoclean) [snd-emu10k1]
snd-pcm 49600 0 (autoclean) [snd-emu10k1]
snd-timer 9728 0 (autoclean) [snd-seq snd-pcm]
snd-util-mem 1424 0 (autoclean) [snd-emu10k1]
snd 27048 0 [snd-seq snd-emu10k1 snd-hwdep snd-rawmidi
snd-seq-device snd-ac97-codec snd-pcm snd-timer snd-util-mem]
soundcore 4068 2 [snd]
When I put in /etc/modules.conf:
"post-install snd-emu10k1-synth /usr/local/bin/sfxload
/usr/share/sounds/sf2/8mbgmsfx.sf2"
snd-seq-oss is loaded, /dev/sequencer is created
$ /sbin/lsmod
snd-seq-midi 3424 0 (autoclean) (unused)
snd-emu10k1-synth 4384 0 (autoclean) (unused)
snd-emux-synth 26368 0 (autoclean) [snd-emu10k1-synth]
snd-seq-midi-emul 4912 0 (autoclean) [snd-emux-synth]
snd-seq-virmidi 2872 0 (autoclean) [snd-emux-synth]
snd-seq-oss 25984 0
snd-seq-midi-event 3160 0 [snd-seq-midi snd-seq-virmidi snd-seq-oss]
snd-seq 37228 2 [snd-seq-midi snd-emux-synth snd-seq-midi-emul
snd-seq-virmidi snd-seq-oss snd-seq-midi-event]
snd-emu10k1 58720 0 (autoclean) [snd-emu10k1-synth]
snd-hwdep 3616 0 (autoclean) [snd-emu10k1]
snd-rawmidi 12256 0 (autoclean) [snd-seq-midi snd-seq-virmidi snd-emu10k1]
snd-seq-device 4128 0 (autoclean) [snd-seq-midi snd-emu10k1-synth
snd-emux-synth snd-seq-oss snd-seq snd-emu10k1 snd-rawmidi]
snd-ac97-codec 22976 0 (autoclean) [snd-emu10k1]
snd-pcm 49600 0 (autoclean) [snd-emu10k1]
snd-timer 9728 0 (autoclean) [snd-seq snd-pcm]
snd-util-mem 1424 0 (autoclean) [snd-emux-synth snd-emu10k1]
snd 27048 0 [snd-seq-midi snd-emux-synth snd-seq-virmidi
snd-seq-oss snd-seq-midi-event snd-seq snd-emu10k1 snd-hwdep
snd-rawmidi snd-seq-device snd-ac97-codec snd-pcm snd-timer snd-util-mem]
soundcore 4068 6 [snd]
In /var/log/messages:
jui 6 08:43:06 localhost : Loading module: snd-seq-oss
Jul 6 08:43:08 localhost modprobe: modprobe: post-install snd-emu10k1-synth failed
<27>Jul 6 08:43:08 modprobe: modprobe: insmod snd-emu10k1-synth
failed
and the sound bank is not loaded.
I can only load the sound bank manually by typing:
$ sfxload /usr/...
Any idea ?
Bernez
------------------------------------------------------------------------
Mandrale-Linux-8.2 (Kernel-2.4.18-6mdk) with DEVFS support
CreativeLabs SoundBlaster Live! - alsa-0.9.0beta12
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Got root? We do.
http://thinkgeek.com/sf
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user