Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2004 22:46:38 +0100
From:      Stefan Ehmann <shoesoft@gmx.net>
To:        Don Lewis <truckman@FreeBSD.org>
Cc:        mat@cnd.mcgill.ca
Subject:   Re: write(2) lc_r problem
Message-ID:  <1074980798.705.3.camel@shoeserv.freebsd>
In-Reply-To: <200401242118.i0OLI47E073265@gw.catspoiler.org>
References:  <200401242118.i0OLI47E073265@gw.catspoiler.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1074980798.705.3.camel>