Date: Thu, 04 Jan 2001 16:02:19 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: John Baldwin <jhb@FreeBSD.org> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/dev/sound/pcm sound.c Message-ID: <XFMail.010104160219.jhb@FreeBSD.org> In-Reply-To: <200101042349.f04Nn3I31315@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010104160219.jhb>