From owner-freebsd-multimedia@FreeBSD.ORG Thu Oct 6 08:04:19 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A9B616A41F for ; Thu, 6 Oct 2005 08:04:19 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD0E743D45 for ; Thu, 6 Oct 2005 08:04:18 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 521BF6CC23; Thu, 6 Oct 2005 16:04:39 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21805-10; Thu, 6 Oct 2005 16:04:37 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 8D66B6CC22; Thu, 6 Oct 2005 16:04:37 +0800 (MYT) Date: Thu, 6 Oct 2005 16:04:51 +0800 From: Ariff Abdullah To: pyunyh@gmail.com Message-Id: <20051006160451.532a05fc.skywizard@MyBSD.org.my> In-Reply-To: <20051006062915.GB11441@rndsoft.co.kr> References: <200510051700.j95H0RlJ038651@freefall.freebsd.org> <20051006062915.GB11441@rndsoft.co.kr> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@FreeBSD.org, chris@luethy.net Subject: Re: i386/74191: Notebook PC2001 Compliant AC97 audio works for only first 15 seconds 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, 06 Oct 2005 08:04:19 -0000 On Thu, 6 Oct 2005 15:29:15 +0900 Pyun YongHyeon wrote: > > I can't sure what caused this but it seems that there is a bug in > interrupt handler. > > In stock t4dwave(4), we have the following code in tr_intr(). > 725 intsrc = tr_rd(tr, TR_REG_MISCINT, 4); > 726 if (intsrc & TR_INT_ADDR) { > 727 chnum = 0; > 728 while (chnum < 64) { > ^^^ > 729 mask = 0x00000001; > > I think it would be 32 for M5451 as the hardware only supports 32 > channels. The correct one should be selected by checking > pci_get_devid(). Ariff, what's your opinion? > I can't comment on that (but probably worth a try). What keep bugging me is that there is a possibility that XMMS itself is the culprit (XMMS is notoriously keep polling / accessing / reading / abusing /dev/mixer) and somehow cause the entire ac97 codec failed. To the originator, could you please try playing mp3 using mpg123 or mpg321? Don't fire up xmms or mplayer or xine or mixer whatever. Do it in a clean environment, especially single user mode or without X. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)