From owner-cvs-all@FreeBSD.ORG Sun May 6 17:37:31 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 096E116A404; Sun, 6 May 2007 17:37:31 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id D66C413C469; Sun, 6 May 2007 17:37:30 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (lqer9ebx8i9gni9l@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l46HbUE3010230; Sun, 6 May 2007 10:37:30 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l46HbUOE010229; Sun, 6 May 2007 10:37:30 -0700 (PDT) (envelope-from jmg) Date: Sun, 6 May 2007 10:37:29 -0700 From: John-Mark Gurney To: Ariff Abdullah Message-ID: <20070506173729.GN17958@funkthat.com> References: <200705061646.l46GkOXi045874@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705061646.l46GkOXi045874@repoman.freebsd.org> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html 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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2007 17:37:31 -0000 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."