From: Takashi Iwai Subject: Re: [RFC] Zero-conf ALSA Date: Fri, 16 Dec 2005 11:14:32 +0100 Message-ID: References: <1132805024.1921.48.camel@mindpipe> <1134599222.12086.73.camel@mindpipe> <1134669963.12086.124.camel@mindpipe> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1134669963.12086.124.camel@mindpipe> 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: Lee Revell Cc: alsa-devel , ALSA user list List-Id: alsa-devel@alsa-project.org At Thu, 15 Dec 2005 13:06:02 -0500, Lee Revell wrote: > > On Thu, 2005-12-15 at 11:52 +0100, Takashi Iwai wrote: > > At Wed, 14 Dec 2005 17:27:01 -0500, > > Lee Revell wrote: > > > > > > On Thu, 2005-11-24 at 11:28 +0100, Takashi Iwai wrote: > > > > > Can #2 be solved by having dmix prefer power of two period/buffer > > > > sizes > > > > > for the slave hw PCM by default? AFAICT this should work unless an > > > > ALSA > > > > > app has opened the device first and set an incompatible buffer size. > > > > > > > > It's not so easy, unfortunately. We'll need to fix to allow dmix the > > > > arbitrary period/buffer sizes. As long as the constraints of slave > > > > PCM perido size exists, power-of-2 cannot be applied. > > > > > > Is the power of 2 period size restriction imposed by OSS, or dmix? > > > > It's OSS. > > Then why can't the OSS emulation open the slave PCM with a power of 2 > period size by default? AFAICT this would only fail if someone else has > already opened the slave PCM with a non power of 2 period/buffer. Hint: different sample rates. dmix is running on a fixed sample rate, and if you open an OSS device with a different sample rate, you need to convert it. The period size/buffer is based on the original sample rate, so... Takashi ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click