From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 4 22:43:33 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B70E4106564A; Wed, 4 Apr 2012 22:43:33 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo103.cox.net (eastrmfepo103.cox.net [68.230.241.215]) by mx1.freebsd.org (Postfix) with ESMTP id 31A288FC0A; Wed, 4 Apr 2012 22:43:33 +0000 (UTC) Received: from eastrmimpo110.cox.net ([68.230.241.223]) by eastrmfepo103.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120404224327.KBJV8874.eastrmfepo103.cox.net@eastrmimpo110.cox.net>; Wed, 4 Apr 2012 18:43:27 -0400 Received: from serene.no-ip.org ([98.164.83.206]) by eastrmimpo110.cox.net with bizsmtp id tyjT1i0034T5sES02yjTUr; Wed, 04 Apr 2012 18:43:27 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A02020A.4F7CCE8F.008D,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=9p1evl5cAK1ZYNWAcfn8X6IfAmCGuOPdFgneQpdUexw= c=1 sm=1 a=7xxgoShuRqAA:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=cRs4AX/51puMaUeRAuoQtw==:17 a=FnIUHYMPAAAA:8 a=6I5d2MoRAAAA:8 a=kviXuzpPAAAA:8 a=MTJNS9YCOXCYn5ON-7cA:9 a=CjuIK1q_8ugA:10 a=TG6KZ68mZ_cA:10 a=SV7veod9ZcQA:10 a=4vB-4DCPJfMA:10 a=cRs4AX/51puMaUeRAuoQtw==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q34MhQP6050133; Wed, 4 Apr 2012 17:43:26 -0500 (CDT) (envelope-from conrads@cox.net) Date: Wed, 4 Apr 2012 17:43:21 -0500 From: "Conrad J. Sabatier" To: Yuri Message-ID: <20120404174321.2cdad829@cox.net> In-Reply-To: <4F7CC09F.7040702@rawbw.com> References: <201204010630.q316UILx083986@freefall.freebsd.org> <20120404162535.22acf544@cox.net> <4F7CC09F.7040702@rawbw.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, bug-followup@freebsd.org Subject: Re: kern/129604: [sound] Sound stops with error: pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2012 22:43:33 -0000 On Wed, 04 Apr 2012 14:43:59 -0700 Yuri wrote: > On 04/04/2012 14:25, Conrad J. Sabatier wrote: > > I've been seeing this intermittently for a very long time. I've > > reported it and have received a patch from the sound maintainer, > > but it still occurs every so often nonetheless. > > > > This is a long-standing bugaboo that has yet to be fully resolved. > > Maybe it's a good idea if you posted this patch into the bug comments > (bug-followup@FreeBSD.org) so that whoever looks into it can at least > see the direction the patch was going. > > Yuri Here's the patch I got from (I forget who sent it to me!): --- hdac.c (revision 230571) +++ hdac.c (working copy) @@ -1921,6 +1921,8 @@ ctl |= 1 << ss; HDAC_WRITE_4(&sc->mem, HDAC_INTCTL, ctl); + HDAC_WRITE_1(&sc->mem, off + HDAC_SDSTS, + HDAC_SDSTS_DESE | HDAC_SDSTS_FIFOE | HDAC_SDSTS_BCIS); ctl = HDAC_READ_1(&sc->mem, off + HDAC_SDCTL0); ctl |= HDAC_SDCTL_IOCE | HDAC_SDCTL_FEIE | HDAC_SDCTL_DEIE | HDAC_SDCTL_RUN; -- Conrad J. Sabatier conrads@cox.net