From owner-cvs-all Thu Jan 4 16: 2:15 2001 From owner-cvs-all@FreeBSD.ORG Thu Jan 4 16:02:11 2001 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id B9B1C37B400; Thu, 4 Jan 2001 16:02:11 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f0501KG66490; Thu, 4 Jan 2001 16:01:20 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200101042349.f04Nn3I31315@freefall.freebsd.org> Date: Thu, 04 Jan 2001 16:02:19 -0800 (PST) From: John Baldwin To: John Baldwin Subject: RE: cvs commit: src/sys/dev/sound/pcm sound.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 04-Jan-01 John Baldwin wrote: > jhb 2001/01/04 15:49:03 PST > > Modified files: > sys/dev/sound/pcm sound.c > Log: > The 'maxchans' count is one more than the number of channels, so > 'chancount' never got up to equaling 'maxchans'. As a result, > pcm_makelinks() was never called, and one always had to set the sysctl to > get the /dev/mixer and other symlinks generated in the DEVFS case. > Instead, > change the test in pcm_addchan() to call pcm_makelinks() after the first > channel is initialized, since the aliases are linked to channel 0. > > Reviewed by: cg On my laptop with devfs /dev/mixer points to /dev/mixer0 now out of the box, so that 'mixer' and other commands work without having to set any sysctl's or anything special. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message