From: Takashi Iwai Subject: Re: Requiring the same sample rate for playback and record? Date: Mon, 23 Jun 2008 14:10:31 +0200 Message-ID: References: <485C0042.4050008@freescale.com> <485F9236.8090801@freescale.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id B7B4F10386C for ; Mon, 23 Jun 2008 14:10:31 +0200 (CEST) In-Reply-To: <485F9236.8090801@freescale.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Timur Tabi Cc: ALSA development List-Id: alsa-devel@alsa-project.org At Mon, 23 Jun 2008 07:08:22 -0500, Timur Tabi wrote: > > Takashi Iwai wrote: > > > Right now there is no "elegant" way for this, unfortunately. > > A common way many drivers use is to remember the rate of the first > > stream, then add it to hw_constraint of the secondary streams. > > But, this could be also a bit racy (unavoidable due to its design) > > although practically it seems working. > > Ok, thanks. I assume the same solution applies if I have a sample *format* > restriction? Yes. Takashi