autoprobing of sound submodules

Adam Heath (adam.heath@usa.net)
Mon, 9 Feb 1998 03:41:29 -0500 (EST)


Here is my relevent kerneld setup.

---
alias char-major-14 sound
#/dev/mixer
alias char-major-14-0 sb
#/dev/sequencer
alias char-major-14-1 adlib_card
#/dev/mixer
alias char-major-14-2 sb
#/dev/dsp
alias char-major-14-3 sb
#/dev/audio
alias char-major-14-4 sb
#/dev/dsp16
alias char-major-14-5 sb
#/dev/sndstat
alias char-major-14-6 sound
#/dev/awfm  *RESERVED*
alias char-major-14-7 off
#/dev/sequencer2
alias char-major-14-8 adlib_card
#/dev/sndproc
alias char-major-14-9 off

alias char-major-14-sequencer awe_wave post-install awe_wave strace /usr/bin/sfxload /sndbnk/synthgm.sbk 1>/root/strace.log 2>&1 #pre-install awe_wave modprobe -k adlib_card

alias awe-wave-default-bnk off

---
(Sorry for line wrap, if it does.)

I modified sound_open to issue a request_module for the device being opened. Then, in the ioctl for the sequencer device, I issue a request for char-major-14-sequencer. All works find if I modprobe awe_wave.

If, however, I run drvmidi with no modules loaded, sound loads, then adlib_card. drvmidi opens /dev/sequencer, issues an ioctl, and then awe_wave attempts to load. When sfxload tries to run, it also attempts to open /dev/sequencer. This fails, has drvmidi already has it open. Hence, sfxload doesn't install the sound font, and drvmidi exits.

Does anyone have any pointers on this? Maybe I should make a new function that can load a sound font without using an ioctl.

Adam

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu