From owner-cvs-all Thu Jan 4 15:49: 6 2001 From owner-cvs-all@FreeBSD.ORG Thu Jan 4 15:49:04 2001 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 00CE437B402; Thu, 4 Jan 2001 15:49:04 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f04Nn3I31315; Thu, 4 Jan 2001 15:49:03 -0800 (PST) (envelope-from jhb) Message-Id: <200101042349.f04Nn3I31315@freefall.freebsd.org> From: John Baldwin Date: Thu, 4 Jan 2001 15:49:03 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/pcm sound.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 Revision Changes Path 1.33 +2 -2 src/sys/dev/sound/pcm/sound.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message