From jabrown@login.caida.org  Wed Oct  1 21:46:24 2003
Return-Path: <jabrown@login.caida.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E2A2716A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Oct 2003 21:46:24 -0700 (PDT)
Received: from login.caida.org (login.caida.org [192.172.226.78])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BAA9743FF2
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Oct 2003 21:46:23 -0700 (PDT)
	(envelope-from jabrown@login.caida.org)
Received: from login.caida.org (localhost [127.0.0.1])
	by login.caida.org (8.12.10/8.12.10) with ESMTP id h924kNrb059155
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Oct 2003 21:46:23 -0700 (PDT)
Received: (from jabrown@localhost)
	by login.caida.org (8.12.10/8.12.10/Submit) id h924kNL3059154;
	Wed, 1 Oct 2003 21:46:23 -0700 (PDT)
Message-Id: <200310020446.h924kNL3059154@login.caida.org>
Date: Wed, 1 Oct 2003 21:46:23 -0700 (PDT)
From: jabrown@caida.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] 4.8-R mss sound after resume fix
X-Send-Pr-Version: 3.2

>Number:         57487
>Category:       kern
>Synopsis:       [sound] [patch] Sound stops working on my Thinkpad 560X after suspend/resume
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 01 21:50:08 PDT 2003
>Closed-Date:    Wed Dec 28 18:03:42 GMT 2005
>Last-Modified:  Wed Dec 28 18:03:42 GMT 2005
>Originator:     Jeff Brown
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
Just me
>Environment:

IBM Thinkpad 560X

4.8-RELEASE kernel, modified from GENERIC to include "options PNPBIOS" and
"device pcm" (as well as other stuff).

/kernel: pcm0: [CS423x] at port 0x530-0x537,0x388-0x38b,0x220-0x233 irq 5
drq 1,0 on isa0

(Note: I changed the greater/less-than signs to braces in the previous
paragraph.)

>Description:

After playing audio, suspending and resuming the machine, future 
attempts to play audio result in:

/kernel: pcm0:play:0: play interrupt timeout, channel dead

>How-To-Repeat:

mpg321 ~/my.mp3
apm -z
(resume system)
mpg321 ~/my.mp3

>Fix:

Apply this patch.  It may not be the elegant way, it may break other MSS 
devices, but it's really simple and works on my 560X:

--- dev/sound/isa/mss.c.orig	Wed Oct  1 21:24:03 2003
+++ dev/sound/isa/mss.c	Wed Oct  1 21:24:42 2003
@@ -1816,6 +1816,7 @@
     			conf_wr(mss, i, mss->opl_indexed_regs[i]);
 		mss_intr(mss);
     	}
+	mss_init(mss, dev);
     	return 0;
 
 }

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sound 
Responsible-Changed-By: kris 
Responsible-Changed-When: Fri Oct 10 22:48:27 PDT 2003 
Responsible-Changed-Why:  
Assign to sound maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57487 
State-Changed-From-To: open->feedback 
State-Changed-By: netchild 
State-Changed-When: Sun Sep 11 10:27:56 GMT 2005 
State-Changed-Why:  
Is this still an issue on 5.[34] or -current? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57487 
State-Changed-From-To: feedback->closed 
State-Changed-By: netchild 
State-Changed-When: Wed Dec 28 18:03:28 UTC 2005 
State-Changed-Why:  
Timeout:	>3 months without feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57487 
>Unformatted:
