From owner-freebsd-current@FreeBSD.ORG Sat Jan 24 13:46:32 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8877516A4CE for ; Sat, 24 Jan 2004 13:46:32 -0800 (PST) Received: from email07.aon.at (WARSL402PIP8.highway.telekom.at [195.3.96.97]) by mx1.FreeBSD.org (Postfix) with SMTP id 681BB43D2D for ; Sat, 24 Jan 2004 13:46:29 -0800 (PST) (envelope-from shoesoft@gmx.net) Received: (qmail 291414 invoked from network); 24 Jan 2004 21:46:28 -0000 Received: from m096p008.dipool.highway.telekom.at (HELO ?62.46.1.232?) ([62.46.1.232]) (envelope-sender ) by 172.18.5.236 (qmail-ldap-1.03) with SMTP for ; 24 Jan 2004 21:46:28 -0000 From: Stefan Ehmann To: Don Lewis In-Reply-To: <200401242118.i0OLI47E073265@gw.catspoiler.org> References: <200401242118.i0OLI47E073265@gw.catspoiler.org> Content-Type: text/plain Message-Id: <1074980798.705.3.camel@shoeserv.freebsd> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sat, 24 Jan 2004 22:46:38 +0100 Content-Transfer-Encoding: 7bit cc: current@FreeBSD.org cc: mat@cnd.mcgill.ca Subject: Re: write(2) lc_r problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2004 21:46:32 -0000 On Sat, 2004-01-24 at 22:18, Don Lewis wrote: > On 24 Jan, Stefan Ehmann wrote: > > On Sat, 2004-01-24 at 21:03, Mathew Kanner wrote: > >> On Jan 24, Stefan Ehmann wrote: > >> > On Sat, 2004-01-24 at 20:15, Mathew Kanner wrote: > >> > > There is definetly a bug with the sound code when using vchans > >> > > and select. Make sure that (using sysctl) > >> > > > >> > > hw.snd.maxautovchans=0 > >> > > hw.snd.pcmX.vchans=0 > >> > > >> > You're right, that fixed it. That's also the reason why it worked on > >> > stable (vchans was disabled there). > >> > >> Please try this untested patch with vchans enabled. > >> > > > > Great, now it also works with vchans enabled. > > > > I'm also testing a pcm patch by truckman@ at the moment. Unfortunately > > those two combined don't run nicely. > > > > Panicstring: mutex pcm0:virtual:0 not owned at /usr/src/sys/dev/sound/pcm/channel.c:90 > > Uncomment the CHN_LOCKASSERT(c) in chn_wakeup, and bracket the > chn_wakeup() call in the SLIST_FOREACH() loop with > CHN_LOCK(pce->channel); > CHN_UNLOCK(pce->channel); > Thanks, that fixed it. Now the two patches play nicely together.