cvs commit: src/sys/dev/sound/pcm sound.h

Ariff Abdullah ariff at FreeBSD.org
Sun May 6 17:56:01 UTC 2007


On Sun, 6 May 2007 10:37:29 -0700
John-Mark Gurney <gurney_j at resnet.uoregon.edu> wrote:
> Ariff Abdullah wrote this message on Sun, May 06, 2007 at 16:46
> +0000:
> > ariff       2007-05-06 16:46:23 UTC
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     sys/dev/sound/pcm    sound.h 
> >   Log:
> >   PCMMKMINOR() bit twiddling, so we can have:
> >     - 2048 unique sound cards (dsp0 -> dsp2047)
> >       (used to be 15)
> >     - 32 unique device types  (dspW, audio, mixer, sndstat, ..
> >     32th)
> >       (used to be 15)
> >     -  256 unique cloneable devices (dsp%d.0 -> dsp%d.255)
> >       (unchanged)
> 
> Did you know that if you use the field si_drv1, you don't need to
> limit yourself because of minors?  You have two fields to use,
> si_drv1 and si_drv2..  I was able to remove my MINOR macro from
> bktrau using this method..
> 

Yes, I'm perfectly aware about that, but both si_drv* fields are being
used for other purposes in lots of places. I already planned to
address this which require a not so trivial overhaul, in future.


--
Ariff Abdullah
FreeBSD

... Recording in stereo is obviously too advanced
    and confusing for us idiot ***** users :P ........
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20070506/8e2c85b2/attachment.pgp


More information about the cvs-all mailing list