From owner-freebsd-current@FreeBSD.ORG Tue Dec 16 09:22:21 2003 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 0C28316A4CE for ; Tue, 16 Dec 2003 09:22:21 -0800 (PST) Received: from mailhub2.midco.net (mailhub2.midco.net [24.220.0.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 316A243D2D for ; Tue, 16 Dec 2003 09:22:19 -0800 (PST) (envelope-from pmes@bis.midco.net) Received: (qmail 23415 invoked by uid 0); 16 Dec 2003 17:22:18 -0000 Received: from host-195-219-220-24.midco.net (HELO bis.midco.net) ([24.220.219.195]) (envelope-sender ) by lvs-pop.midco.net (qmail-ldap-1.03) with SMTP for ; 16 Dec 2003 17:22:18 -0000 Message-ID: <3FDF3F49.9010800@bis.midco.net> Date: Tue, 16 Dec 2003 11:22:17 -0600 From: Peter Schultz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6b) Gecko/20031215 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mathew Kanner References: <200312151501.hBFF1Abp088978@fledge.watson.org> <3FDDD7AE.7040801@bis.midco.net> <20031215180827.GA653@opiate.soulwax.net> <20031215190917.GB63202@cnd.mcgill.ca> In-Reply-To: <20031215190917.GB63202@cnd.mcgill.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Munish Chopra cc: current@FreeBSD.org Subject: Re: 5.2-RELEASE TODO 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: Tue, 16 Dec 2003 17:22:21 -0000 Mathew Kanner wrote: > On Dec 15, Munish Chopra wrote: > >>On 2003-12-15 09:47 +0000, Peter Schultz wrote: > > > ... snip ... > > >>>This longstanding problem has now been fixed as far as I'm concerned. >>>Xmms hasn't played mp3s without a hicup for me on -CURRENT since at >>>least a year, if not two or more. It's been so long I can't recall. >>> >>>I'm testing with a soundblaster live! value card: >>>pcm0: port 0xef20-0xef3f irq 17 at device 17.0 on pci0 >>>pcm0: >>> >>>I'm running a -CURRENT SMP kernel on a Tyan S1832DL w/dual PII 350s. I >>>only assume it's working with 5.2 RC1. >>> >> >>They haven't been corrected in my case, or the cases of quite a few >>other folks experiencing them (see some of the other ongoing threads). >> I stand corrected. I thought I was being abusive enough, but if I make my SCSI hard disk (I don't think this is limited to ATA disk activity) really busy there is still slight glitching. It appears as though sync'ing the disk is what causes the trouble. >>I'm not personally seeing any LOR's, but audio playback slows down under >>load, and every few seconds I hear popping noises during audio playback, >>whether under load or not. >> >>I've got a simple SB16: >>pcm0: port 0xd800-0xd83f irq 5 at device 15.0 on >>pci0 >>pcm0: > > > Hello Munish, > I would realy like to help you and others. Please describe in > detail the circumstances that create the problem. Are you > experiencing buffer overruns or underruns? How many devices are > sharing the IRQ? What are they? What happens when you cat a raw file > to the device? Does this happen with VCHANs? Have you tried the patch > I posted to -current under the heading "sound patch for pop & > crackles"? I would like to try your patch, but hunk #3 fails on -CURRENT: *** 113,122 **** chn_wakeup(struct pcm_channel *c) { struct snd_dbuf *bs = c->bufsoft; - CHN_LOCKASSERT(c); - if (SEL_WAITING(sndbuf_getsel(bs)) && chn_polltrigger(c)) - selwakeup(sndbuf_getsel(bs)); wakeup(bs); } --- 117,133 ---- chn_wakeup(struct pcm_channel *c) { struct snd_dbuf *bs = c->bufsoft; + struct pcmchan_children *pce; + // CHN_LOCKASSERT(c); + if (SLIST_EMPTY(&c->children)) { + if (SEL_WAITING(sndbuf_getsel(bs)) && chn_polltrigger(c)) + selwakeup(sndbuf_getsel(bs)); + } else { + SLIST_FOREACH(pce, &c->children, link) { + chn_wakeup(pce->channel); + } + } wakeup(bs); } I've applied it by hand for now. Pete...