From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Courtier-Dutton Subject: Re: Possible bug in alsa-lib. snd_pcm_hw_params_get_periods_max() returning 512 instead of 2. Date: Fri, 11 Jun 2004 16:07:10 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <40C9CA9E.4030207@superbug.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 8F9AE1E5 for ; Fri, 11 Jun 2004 17:07:13 +0200 (MEST) In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Clemens Ladisch Cc: ALSA development List-Id: alsa-devel@alsa-project.org Clemens Ladisch wrote: > James Courtier-Dutton wrote: > >>I cannot think of any circumstances where doing sample rate conversion >>(using the "plug:" plugin) would change the amount of periods. >>Is this a bug in the "plug:" plugin ? > > > Works as designed, I guess. It's the job of the plug plugin to remove > hardware limitations, just in case an application wants to use 42 > periods. > > > Regards, > Clemens > Ok, well the "design" is not working, because with the "plug:", I still can only ever get 2 periods. i.e. If I set period_size to 1024, the buffer_size can only be set to 2048, when in fact I wanted to set the buffer_size to 8192. i.e. I wanted 8 periods, but "plug:" forced me to have 2, just like the hardware can do. So, I conclude from this that the "plug:front" cannot handle a different amount of periods than "front". I think that "plug:" works fine for sample rate and sample format conversions, but seems to fail on the number of periods adaptions. James ------------------------------------------------------- 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