From: Adrian McMenamin Subject: Re: Odd behaviour with my driver Date: Mon, 20 Mar 2006 08:02:14 +0000 Message-ID: <1142841735.9459.3.camel@localhost.localdomain> References: <1142714245.9435.29.camel@localhost.localdomain> <20060320075810.GA5574@turing.informatik.uni-halle.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060320075810.GA5574@turing.informatik.uni-halle.de> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Clemens Ladisch Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org On Mon, 2006-03-20 at 08:58 +0100, Clemens Ladisch wrote: > Adrian McMenamin wrote: > > For some reason the trigger (and prepare) callbacks are continually > > being called > > When the midlevel code thinks that there is an xrun, it calls stop, > prepare, and start. > > > ALSA sound/core/pcm_lib.c:158: BUG: stream = 0, pos = 0x3066, buffer > > size = 0x2000, period size = 0x400 > > > > The hardware buffer is 0x8000 in size and I think that means pos might > > quite legitamtely go as high as 0x3FFF. > > This message shows that the buffer size is 0x2000 frames. If your > number 0x8000 is in bytes, then each frame has four bytes. > > > HTH Thanks. I was wrong about what was going on - as you are correctly pointing out. The problem was that the hardware buffer on two channels was twice as big as on one, so the system was reporting overruns. I adjusted the hardware buffer sizes (in 'firmware') and it Just Worked. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642