From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King Subject: Re: An driver error when I using aplay! Date: Mon, 7 Jun 2004 16:18:12 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <20040607161812.F28526@flint.arm.linux.org.uk> References: <20040607092522.29704.qmail@web15206.mail.bjs.yahoo.com> <20040607111729.A23059@flint.arm.linux.org.uk> <20040607140817.A28526@flint.arm.linux.org.uk> <20040607145113.B28526@flint.arm.linux.org.uk> <20040607160442.D28526@flint.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: ; from tiwai@suse.de on Mon, Jun 07, 2004 at 05:13:47PM +0200 Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Takashi Iwai Cc: Jaroslav Kysela , Roc Wu , Clemens Ladisch , Alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org On Mon, Jun 07, 2004 at 05:13:47PM +0200, Takashi Iwai wrote: > At Mon, 7 Jun 2004 16:04:42 +0100, > Russell King wrote: > > > > On Mon, Jun 07, 2004 at 04:18:55PM +0200, Takashi Iwai wrote: > > > You're right. The error was not txcr, but in another WARN_ON() for > > > checking chan->tx_substream (line 404)! (Russell, you mislead this, > > > too ;) > > > > Well I don't have the exact source which this guy is using, so I can > > only guess. > > Don't take serious, I'd thought of that, too :) > > > > The reason is same -- since hw_params is not called, > > > chan->tx_substream is not set, too. > > > > Wrong. It's memset to zero by matter of fact of how it is allocated. > > I'm surprised you don't know this. It is afterall code which I thought > > you'd be fully aware of, being core ALSA code. > > No, the problematic line is: > > WARN_ON(chan->tx_substream != substream); > > It can't pass because chan->tx_substream is always NULL (as you wrote) > unless hw_params is called. The check is wrong. Ah, well, in my current version of this, I've completely removed that check. Whether there are any other changes, I've no idea. However, my current version doesn't work at all at the moment because its in the middle of having experimental DMA support added, rather than being sucky PIO-only. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/ 2.6 Serial core ------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org