Re: Show stoppers

David Woodhouse (David.Woodhouse@mvhi.com)
Sun, 18 Oct 1998 15:30:55 +0100


ionut@moisil.cs.columbia.edu said:
> Only one small problem -- which indeed concerns only those of us
> masochistic enough to use more than one sound card. :-) With the
> current aproach to device registration it's possible to end up with
> dsp2, mixer1 and midi0 belonging to the same driver, if previously
> loaded drivers don't all support mixer and midi devices. Also, even if
> kmod generates a request for dsp1, you really need to load the driver
> for dsp0 first, otherwise what you wanted on dsp1 will use dsp0
> instead..

> In short, it's a can of worms which can safely wait for 2.3.

Not necessarily. Perhaps it would be advisable to make a couple of trivial
changes to the internal sound API before then.

I think we should add a couple of arguments to the
register_sound_{dsp,mixer,...} routines: One for the name of the device, which
currently isn't registered anywhere for non-OSS devices, and one for a
suggested device number, so we can give driver modules an argument which tells
them 'register as dsp2', and can rely on them to turn up in the right place.

I'd like to see my conf.modules working with something like:

alias dsp0 sb
alias mixer0 sb
options sb dspdev=0 mixerdev=0
alias synth0 awe_wave
alias mixer2 awe_wave
options awe_wave synthdev=0 mixerdev=2
alias dsp1 pcsp
alias mixer1 pcsp
options pcsp dspdev=1 mixerdev=1

---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/