From nobody@FreeBSD.org  Mon Nov 22 22:53:23 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 424991065693
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Nov 2010 22:53:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 314CA8FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Nov 2010 22:53:23 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oAMMrMSO060513
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Nov 2010 22:53:22 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oAMMrMox060512;
	Mon, 22 Nov 2010 22:53:22 GMT
	(envelope-from nobody)
Message-Id: <201011222253.oAMMrMox060512@red.freebsd.org>
Date: Mon, 22 Nov 2010 22:53:22 GMT
From: Stphane Thibaud <snthibaud@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: play interrupt timeout, channel dead
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152500
>Category:       kern
>Synopsis:       [hdac] play interrupt timeout, channel dead
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-multimedia
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 22 23:00:20 UTC 2010
>Closed-Date:    
>Last-Modified:  Mon Apr 16 12:30:12 UTC 2012
>Originator:     Stphane Thibaud
>Release:        8.1-RELEASE
>Organization:
>Environment:
FreeBSD pcbsd-341 8.1-RELEASE FreeBSD 8.1-RELEASE #1: Sat Jul 17 14:19:59 PDT 2010     root@build8x64.pcbsd.org:/usr/obj/usr/pcbsd-build81/fbsd-source/8.1/sys/PCBSD  amd64
>Description:
My sound hardware consists of the following:

hdac0: <NVidia MCP78 High Definition Audio Controller> mem 0xc0000000-0xc0003fff irq 19 at device 7.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
hdac0: HDA Codec #0: Conexant CX20561 (Hermosa)
hdac0: HDA Codec #3: NVidia MCP78 HDMI

Whenever I try to play some sound and my machine is doing something else at the same time (like changing the wallpaper in KDE4 automatically while playing a song in Amarok) the sound hangs and dmesg reports the following:

pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead
>How-To-Repeat:
Just boot the machine and the startup sound is already distorted (that is - one small sample is played repeatedly during the duration of the sound).
>Fix:


>Release-Note:
>Audit-Trail:

From: Andriy Gapon <avg@freebsd.org>
To: bug-followup@freebsd.org, snthibaud@gmail.com,
        Alexander Motin <mav@freebsd.org>
Cc:  
Subject: Re: amd64/152500: play interrupt timeout, channel dead
Date: Sun, 05 Dec 2010 15:35:05 +0200

 Alexander,
 perhaps you have a suggestion here?
 Maybe this is related to msi, nVidia chipset seemed to frequently have problems
 in that department.
 -- 
 Andriy Gapon
Responsible-Changed-From-To: freebsd-amd64->freebsd-multimedia 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Dec 20 08:49:18 UTC 2010 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152500 

From: Gildor Oronar <gildororonar@mail-on.us>
To: bug-followup@FreeBSD.org, snthibaud@gmail.com
Cc:  
Subject: Re: kern/152500: [hdac] play interrupt timeout, channel dead
Date: Mon, 16 Apr 2012 20:27:12 +0800

 I see this buggy behavior but with a very different sound
 device, on 9.0-RELEASE. Sound play for 3 seconds and stop with:
 
 pcm0: chn_write(): pcm0:play:dsp0.p1: play interrupt timeout, channel dead
 
 
 The device is SiS 7018, using snd_t4dwave driver. I also tried to turn off
 ACPI without luck. Perhaps my problem is related?
 
 For your information this problem is reported on ES1370 too:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/129604
 
 mpg123 fails. Tried "dd if=/dev/random of=/dev/dsp"
 too, getting same behavior. Do you think it helpful if I post more info
 like dmesg and various hardware data?
 
 mpg123 output follows.
 
 $ mpg123 Downloads/In\ The\ Shadow\ Of\ The\ Valley.mp3
 High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
           version 1.13.4; written and copyright by Michael Hipp and others
           free software (LGPL/GPL) without any warranty but with best wishes
 
 Directory: Downloads/
 Playing MPEG stream 1 of 1: In The Shadow Of The Valley.mp3 ...
 Title:   In The Shadow Of The Valley     Artist: American Music Club
 Comment: WWW.TOP100.CN                   Album:  San Francisco
 Year:    3/1/2003 12:00:00 AM            Genre:  Pop
 MPEG 1.0 layer III, 128 kbit/s, 44100 Hz stereo
 [audio.c:598] error: Error in writing audio (Invalid argument?)!
 [mpg123.c:651] error: Deep trouble! Cannot flush to my output anymore!
 
>Unformatted:
