Date: Sun, 6 May 2007 10:37:29 -0700 From: John-Mark Gurney <gurney_j@resnet.uoregon.edu> To: Ariff Abdullah <ariff@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/sound/pcm sound.h Message-ID: <20070506173729.GN17958@funkthat.com> In-Reply-To: <200705061646.l46GkOXi045874@repoman.freebsd.org> References: <200705061646.l46GkOXi045874@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070506173729.GN17958>
