Date: Wed, 1 Oct 2003 21:46:23 -0700 (PDT) From: jabrown@caida.org To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/57487: [patch] 4.8-R mss sound after resume fix Message-ID: <200310020446.h924kNL3059154@login.caida.org> Resent-Message-ID: <200310020450.h924o9Is096043@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 57487
>Category: kern
>Synopsis: Sound stops working on my Thinkpad 560X after suspend/resume
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 01 21:50:08 PDT 2003
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310020446.h924kNL3059154>
