Re: Show stoppers

David Woodhouse (David.Woodhouse@mvhi.com)
Mon, 19 Oct 1998 10:37:10 +0100


ionut@moisil.cs.columbia.edu said:
> Well yes, that's the right idea, but for that you need to modify
> every driver to recognize the dspdev, synthdev, mixerdev parameters.
> Hopefully one parsing routine can be placed in soundcore to avoid code
> duplication..

But you don't need to modify the drivers till later. As long as you have the
extra parameters in the _internal_ API before 2.2 is released and people start
writing new drivers for the soundcore API, it doesn't matter if it doesn't
actually _do_ anything yet.

Aside from that, you could probably manage this in header files, if you were
feeling particularly evil.

/* soundcore_module_parms.h */

#ifdef MODULE
static int mixerdev=-1, dspdev=-1, synthdev=-1;
MODULE_PARM(mixerdev,"i");
MODULE_PARM(dspdev,"i");
MODULE_PARM(synthdev,"i");

#define sound_register_dsp(a,b,c,d,e) (sound_register_dsp(a,b,c,d,e,dspdev))
...

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