From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 1 21:50:10 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2DA216A4B3 for ; Wed, 1 Oct 2003 21:50:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4135743FDF for ; Wed, 1 Oct 2003 21:50:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h924o9FY096044 for ; Wed, 1 Oct 2003 21:50:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h924o9Is096043; Wed, 1 Oct 2003 21:50:09 -0700 (PDT) (envelope-from gnats) Resent-Date: Wed, 1 Oct 2003 21:50:09 -0700 (PDT) Resent-Message-Id: <200310020450.h924o9Is096043@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, jabrown@caida.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2A2716A4BF for ; 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 ; 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 ; 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 X-Send-Pr-Version: 3.2 Subject: kern/57487: [patch] 4.8-R mss sound after resume fix X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2003 04:50:10 -0000 >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: