From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: An driver error when I using aplay! Date: Mon, 07 Jun 2004 17:13:47 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: 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> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20040607160442.D28526@flint.arm.linux.org.uk> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Russell King Cc: Jaroslav Kysela , Roc Wu , Clemens Ladisch , Alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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. Takashi ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >>From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504