From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 4 22:50:03 2012 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 064C9106566B for ; Wed, 4 Apr 2012 22:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D9C658FC08 for ; Wed, 4 Apr 2012 22:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q34Mo2B0033841 for ; Wed, 4 Apr 2012 22:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q34Mo2QE033840; Wed, 4 Apr 2012 22:50:02 GMT (envelope-from gnats) Date: Wed, 4 Apr 2012 22:50:02 GMT Message-Id: <201204042250.q34Mo2QE033840@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: "Conrad J. Sabatier" Cc: 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 Reply-To: "Conrad J. Sabatier" List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2012 22:50:03 -0000 The following reply was made to PR kern/129604; it has been noted by GNATS. From: "Conrad J. Sabatier" To: Yuri 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 Date: Wed, 4 Apr 2012 17:43:21 -0500 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