From owner-cvs-src@FreeBSD.ORG Sun May 6 17:56:01 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from misaki (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with SMTP id 20CBA16A415; Sun, 6 May 2007 17:55:59 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Date: Mon, 7 May 2007 01:55:38 +0800 From: Ariff Abdullah To: John-Mark Gurney Message-Id: <20070507015538.7487e7bb.ariff@FreeBSD.org> In-Reply-To: <20070506173729.GN17958@funkthat.com> References: <200705061646.l46GkOXi045874@repoman.freebsd.org> <20070506173729.GN17958@funkthat.com> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Mon__7_May_2007_01_55_38_+0800_AGHGdl2No/qp_Czh" Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/sound/pcm sound.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2007 17:56:01 -0000 --Signature=_Mon__7_May_2007_01_55_38_+0800_AGHGdl2No/qp_Czh Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 6 May 2007 10:37:29 -0700 John-Mark Gurney wrote: > Ariff Abdullah wrote this message on Sun, May 06, 2007 at 16:46 > +0000: > > ariff 2007-05-06 16:46:23 UTC > >=20 > > FreeBSD src repository > >=20 > > Modified files: > > sys/dev/sound/pcm sound.h=20 > > 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) >=20 > 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.. >=20 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 ........ --Signature=_Mon__7_May_2007_01_55_38_+0800_AGHGdl2No/qp_Czh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGPhaalr+deMUwTNoRAobLAJ0SmE9q6P5Eavo+SX7061FF1zQVqwCfY8eN idbSL+pWIp9FwA0ABsY+of8= =5gZP -----END PGP SIGNATURE----- --Signature=_Mon__7_May_2007_01_55_38_+0800_AGHGdl2No/qp_Czh--