From owner-freebsd-multimedia@FreeBSD.ORG Fri Apr 21 00:03:52 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 198C716A400; Fri, 21 Apr 2006 00:03:52 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from merlin.alerce.com (w094.z064001164.sjc-ca.dsl.cnc.net [64.1.164.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2161943D76; Fri, 21 Apr 2006 00:03:43 +0000 (GMT) (envelope-from hartzell@alerce.com) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id BFB1C5643A; Thu, 20 Apr 2006 17:04:44 -0700 (PDT) Received: from satchel.alerce.com (w092.z064001164.sjc-ca.dsl.cnc.net [64.1.164.92]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "satchel.alerce.com", Issuer "alerce.com" (verified OK)) by merlin.alerce.com (Postfix) with ESMTP id 64D7F56436; Thu, 20 Apr 2006 17:04:44 -0700 (PDT) Received: from satchel.alerce.com (localhost [127.0.0.1]) by satchel.alerce.com (8.13.4/8.13.4) with ESMTP id k3L044Fp072752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Apr 2006 17:04:04 -0700 (PDT) (envelope-from hartzell@satchel.alerce.com) Received: (from hartzell@localhost) by satchel.alerce.com (8.13.4/8.13.4/Submit) id k3L0430R072747; Thu, 20 Apr 2006 17:04:03 -0700 (PDT) (envelope-from hartzell) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17480.8563.679808.816061@satchel.alerce.com> Date: Thu, 20 Apr 2006 17:04:03 -0700 To: Ariff Abdullah In-Reply-To: <20060421071542.6021fee8.ariff@FreeBSD.org> 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> <20060421071542.6021fee8.ariff@FreeBSD.org> X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid X-Virus-Scanned: ClamAV using ClamSMTP 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 Reply-To: hartzell@alerce.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 00:03:52 -0000 Ariff Abdullah writes: > 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: > > > > > > > > > > > It's because the hardware DMA pointer is being lazy and need > > > > > a good spank on its face. > > > > > > > > > > Replace your sys/dev/sound/pci/via8233.c with: > > > > > > > > > > http://people.freebsd.org/~ariff/test/via8233.c > > > > > > > > > > As usual, recompile your kernel, or just the modules. If > > > > > this doesn't work, I still have few more other tricks. > > > > > > > > > > Coincidently, I'm currently investigating DMA incoherency > > > > > within few drivers, notably this and few others. > > > > > > > > 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. > > > > > > > Try again (same above link). Looks like we need to fabricate DMA > > > progress. > > > > I still get silence and the same message when cat /etc/termcap > > > /dev/dsp0.0. > > > > 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. I put 'before blah 1' and 'after blah 1' around the chn_intr at about 741, and 'before/after blah 2' around the chn_intr around line 768. When I cat /etc/termcap > /dev/dsp0.0 I get before blah 1 after blah 1 before blah 1 after blah 1 pcm0:play:0:dsp0.0: play interrupt timeout, channel dead g.