Re: sound <-> kerneld

Itai Nahshon (nahshon@actcom.co.il)
Sat, 07 Feb 1998 04:48:01 +0200


Regis Duchesne wrote:
>
> > The kernel just requests "char-major-14" which is
> > by default aliased to "sound".
>
> > What's missing in his patch is automatic
> > loading of the synth device (opl3 for sb cards) when the sequencer is
> > open.
> No. All things _but playmidi -f foo.mid_ in a sb 16 pnp work perfectly
> when char-major-14 is aliased to "sb".
>
> If I want playmidi -f foo.mid to work as well, I have to manually load
> adlib_card.o (and not opl3.o, opl3.o will be loaded because it is needed
> by adlib_card.o, but that must be loaded)
>
Kerneld really does not care what is requested from it. "char-manor-xxx"
does not have any magic meaning. It is just that "char-major-14" is
aliassed to "sound" and you can change its alias to anything that you
like. If you want the kernel to request "char-major-14-1" for
/dev/sequencer
then the right way is still to load sound.o and have sound.o request
the sub-modules which are required.
Minor numbers cannot be used for that purpoose in sound.o. You can
perform mixer operations on ANY sound device. The sequencer may use
the synth device or the MIDI device, All supported types of audio
samples
can be written to /dev/dsp, /dev/audio and /dev/dspW where the
difference
is only in the default initialization.

And... It does not work perfectly. If you use kerneld then it should
unload sb.o and sound.o at some time. sb.o has to be unloaded first.
If you try any soundd operation in the time that sb.o is already
unloaded
but sound.o is still loaded, the operation will fail, and it is going
to take some time (or root intervention) before you can use the sound
driver again.

Also... Not everybody uses a sound blaster (but the problems are more
or less similar with other sound cards).

Itai

-- 
Itai Nahshon   nahshon@actcom.co.il
        Also   nahshon@vnet.ibm.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu