Re: sound <-> kerneld

Regis Duchesne (regis@via.ecp.fr)
Fri, 6 Feb 1998 15:24:08 +0100 (CET)


> 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)

As I use a lot /dev/dsp on my computer, I think it's normal, to have my sb
module alaways loaded, but I want to have my adlib_card.o module loaded
_on demand_.

That's why for the moment, I think the kernel is broken : when playmidi -f
foo.mid tries to open its device, it fails because no kernel request is
sent to kerneld. In my humble opinion, the kernel should issue a request
like "char-major-14-minor-bar", to have adlib_card.o loaded, thanks to an
alias in my /etc/modules.conf.

It seems that kerneld can always handle such a situation (see the
software watchdog which use a kerneld request like char-major-10-130
for the device with major number 10 and minor number 130, which is
aliased to softdog.o). So it seems this is not really a kerneld problem,
but a kernel problem : the kernel should be able to send the right kerneld
request when trying to open the device.

I haven't looked yet at Thomas Sailer's patch you mentionned, could you
please give me its URL?

Best regards,

Regis "HPReg" Duchesne - Engineering Student at ***** ******** *****
www http://www.via.ecp.fr/~regis/
(O o) I use Linux & 3Com (1135 KB/s over 10Mb/s ethernet)
--.oOO--(_)--OOo.-----------------------------------------------------------

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