From owner-freebsd-multimedia@FreeBSD.ORG Thu Apr 20 23:15:48 2006 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 C66D016A40E for ; Thu, 20 Apr 2006 23:15:48 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6147143D45; Thu, 20 Apr 2006 23:15:48 +0000 (GMT) (envelope-from ariff@FreeBSD.org) Received: from misaki (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with SMTP id k3KNFjnH003137; Thu, 20 Apr 2006 23:15:47 GMT (envelope-from ariff@FreeBSD.org) Date: Fri, 21 Apr 2006 07:15:42 +0800 From: Ariff Abdullah To: hartzell@alerce.com Message-Id: <20060421071542.6021fee8.ariff@FreeBSD.org> In-Reply-To: <17480.3995.952982.333106@satchel.alerce.com> References: <17477.44637.316536.583639@satchel.alerce.com> <20060420064700.48c63e27.ariff@FreeBSD.org> <17478.53172.814200.467979@satchel.alerce.com> <20060421053137.7cc345b5.ariff@FreeBSD.org> <17480.3995.952982.333106@satchel.alerce.com> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__21_Apr_2006_07_15_42_+0800_Jp/tVyr7cWqpKNjf" Cc: freebsd-multimedia@FreeBSD.org Subject: Re: Odd code in sound/pcm/channel.c, help with PR? 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, 20 Apr 2006 23:15:48 -0000 --Signature=_Fri__21_Apr_2006_07_15_42_+0800_Jp/tVyr7cWqpKNjf Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 20 Apr 2006 15:47:55 -0700 George Hartzell wrote: > Ariff Abdullah writes: > > On Wed, 19 Apr 2006 17:03:00 -0700 > > George Hartzell wrote: > > > > >=20 > > > > It's because the hardware DMA pointer is being lazy and need > > > > a good spank on its face. > > > >=20 > > > > Replace your sys/dev/sound/pci/via8233.c with: > > > >=20 > > > > http://people.freebsd.org/~ariff/test/via8233.c > > > >=20 > > > > As usual, recompile your kernel, or just the modules. If > > > > this doesn't work, I still have few more other tricks. > > > >=20 > > > > Coincidently, I'm currently investigating DMA incoherency > > > > within few drivers, notably this and few others. > > >=20 > > > I think that you need to get a bigger stick. I did a > > > buildkernel/installkernel and still no sound when I cat to > > > /dev/dsp0.0 and I still get the timeouts. > > >=20 > > Try again (same above link). Looks like we need to fabricate DMA > > progress. >=20 > I still get silence and the same message when cat /etc/termcap > > /dev/dsp0.0. >=20 Can you put printf("blah blah whatever\n") statement around chn_intr() within via8233.c ? (There are 2 chn_intr(), at least). I just want to know if the interrupt are really triggered. It's possible that the DMA completion is too fast and it simply flag EOL on every interrupt, or dead. -- Ariff Abdullah FreeBSD --Signature=_Fri__21_Apr_2006_07_15_42_+0800_Jp/tVyr7cWqpKNjf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFESBYglr+deMUwTNoRAoh8AKDArtX+gKtVhTtiLCOOCAveBF0RBwCgneFU 33sn2rJQnJZXcI1gAQlfo+c= =s71v -----END PGP SIGNATURE----- --Signature=_Fri__21_Apr_2006_07_15_42_+0800_Jp/tVyr7cWqpKNjf--