From: Takashi Iwai Subject: Re: Fw: Bug with PCM plug layer with mmap emulation=true ? Date: Wed, 12 Apr 2006 13:10:08 +0200 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: 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: Nikhil Rao Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Mon, 10 Apr 2006 15:51:14 -0700, Nikhil Rao wrote: > > Hi Takashi, > > I havent received any response to the query below, let me know if I need to > add more information. Sorry I seem to have missed that post. > > thanks, > Nikhil > ----- Original Message ----- > From: "Nikhil Rao" > To: > Sent: Monday, April 03, 2006 4:26 PM > Subject: Bug with PCM plug layer with mmap emulation=true ? > > > > Hello, > > > > I have observed that the using pcm plug layer with mmap emulation=true in > > alsa.conf, causes the first period of data to be sent twice to the driver. > > I also verified this by dumping the PCM data to a file (using the copy > > callback) This could be a bug. The mmap_emulation mode wasn't debugged for long time. > > I have tried experiments using the ALSA driver (ver 1.0.10) written by me > > for my development system (an SoC) > > and also the intelx80 driver on a Suse 10.0 system (ALSA ver 1.0.9b). I > > modified the intelx80 driver so that it only supports 48Khz and then used > > the plughw device to playout a 44Khz sample. There is a distinct stutter > > audible at the beginning of the clip caused by the first period being > > presented twice to the hardware. > > > > Is this a known problem ? if so, is a workaround available (my development > > platform does not support mmap currently). Well, another question is whether really mmap is necessary for your device. Any particular applications require the mmap access exclusively? Anyway, the bug should be fixed. First, could you try the latest ALSA (1.0.11rc5 was released yesterday)? Debugging old codes is a waste of time. The symptom sounds like a problem with rate plugin. The rate plugin defers the transfer until a whole period size is filled. So, if the problem still exists, please describe the method you checked this behavior in details, too. Takashi ------------------------------------------------------- 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