From owner-freebsd-multimedia@FreeBSD.ORG Thu Apr 5 08:06:08 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB8501065670 for ; Thu, 5 Apr 2012 08:06:07 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 61D0C8FC15 for ; Thu, 5 Apr 2012 08:06:07 +0000 (UTC) Received: by lagv3 with SMTP id v3so1878202lag.13 for ; Thu, 05 Apr 2012 01:06:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=hVftuYPdsrc1Xlyul4homke+Osl+TUBqAeIJH30ePVw=; b=b8AHKIM8J2pIlu6QvbU6gaUTlzE+OuiM/8jcWdSc924lWzGpYb3UMQccO562FA3BZI z6qEMuPnELH074BW7bg9a2tyQXEyEdgVFhVvb9+yKQOFGAFDsMj5cq8m9VKjivZqYW9q WCN29pUQsfM9r5tX9ZQeOtfA/dxmXlGzVQWElyXNsjt2dK+hw4rq1DqdHIniPC0dnTM7 2/clgNfZuzSygTOaOcmiLHcZ4nN+gs7P8c3E9I2bojCQu2Vd1GtNiiZVMqxKKlvvCCbq 6Fl4oN8C/g3VYYU0nWnAuhy3NcU/UAKPS0/e5R9v4ZzgyFEzHIm8/wdThwZXmHXas4MG +E/w== MIME-Version: 1.0 Received: by 10.152.131.9 with SMTP id oi9mr1927676lab.6.1333613165902; Thu, 05 Apr 2012 01:06:05 -0700 (PDT) Received: by 10.112.84.195 with HTTP; Thu, 5 Apr 2012 01:06:05 -0700 (PDT) In-Reply-To: <20120404174321.2cdad829@cox.net> References: <201204010630.q316UILx083986@freefall.freebsd.org> <20120404162535.22acf544@cox.net> <4F7CC09F.7040702@rawbw.com> <20120404174321.2cdad829@cox.net> Date: Thu, 5 Apr 2012 10:06:05 +0200 Message-ID: From: Olivier Smedts To: "Conrad J. Sabatier" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQnP1ae76kI9U0qVFeUqN72E7pS/W7HFLhGbRep25ytb84dphaMw1TFnpvd/IZJFQczQoYjG Cc: freebsd-multimedia@freebsd.org, Yuri , 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: Thu, 05 Apr 2012 08:06:08 -0000 2012/4/5 Conrad J. Sabatier : > 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. =A0I'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 =A0 =A0 =A0(revision 230571) > +++ hdac.c =A0 =A0 =A0(working copy) > @@ -1921,6 +1921,8 @@ > =A0 =A0 =A0 =A0ctl |=3D 1 << ss; > =A0 =A0 =A0 =A0HDAC_WRITE_4(&sc->mem, HDAC_INTCTL, ctl); > > + =A0 =A0 =A0 HDAC_WRITE_1(&sc->mem, off + HDAC_SDSTS, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 HDAC_SDSTS_DESE | HDAC_SDSTS_FIFOE | HDAC_S= DSTS_BCIS); > =A0 =A0 =A0 =A0ctl =3D HDAC_READ_1(&sc->mem, off + HDAC_SDCTL0); > =A0 =A0 =A0 =A0ctl |=3D HDAC_SDCTL_IOCE | HDAC_SDCTL_FEIE | HDAC_SDCTL_DE= IE | > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0HDAC_SDCTL_RUN; > > > -- > Conrad J. Sabatier > conrads@cox.net > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.= org" This patch has already been committed to 10-CURRENT and 9-STABLE : # svn log -r232798 sys/dev/sound/pci/hda/hdac.c ------------------------------------------------------------------------ r232798 | mav | 2012-03-10 22:58:08 +0100 (sam 10 mar 2012) | 13 lignes MFC r230130, r230181, r230312, r230326, r230331, r230451, r230465, r230488, r230507, r230511, r230513, r230532, r230537, r230551, r230554, r230571, r230574, r230585, r230641, r230768, r230807, r231024: Sync snd_hda(4) driver with HEAD. This includes major code refactoring, HDMI support, new volume control, automatic recording source selection, runtime reconfigureation, support for more then 4 PCM devices on controller, multichannel recording, additional playback/record streams, higher bandwidths support, more informative device names and many other things. Sponsored by: iXsystems, Inc. --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."