lkml.org 
[lkml]   [1998]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Show stoppers
On Sun, 18 Oct 1998, David Woodhouse wrote:

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

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

Ok, I'm gonna give it a try. It would be even nicer if I could actually
*test* my changes (I have the dreaded VIA motherboard which locks up when
using DMA for sound).. I guess I'll give Andrea Arcangeli's patch a try
and see if it fixes the problem.

Meanwhile, what's a good strategy to follow if the suggested device(s) are
already in use? Fall back to the "first come first serve" approach?

Thanks,
Ion

--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.



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

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.030 / U:1.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site