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

John-Mark Gurney gurney_j at resnet.uoregon.edu
Sun May 6 17:37:31 UTC 2007


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

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the cvs-all mailing list