From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: Requiring the same sample rate for playback and record? Date: Wed, 16 Jul 2008 16:17:48 +0100 Message-ID: <1216221468.6734.5.camel@odin> References: <485C0042.4050008@freescale.com> <487BC430.8040109@freescale.com> <487E0F9F.1060401@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource2.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id 64D3524469 for ; Wed, 16 Jul 2008 17:17:49 +0200 (CEST) In-Reply-To: <487E0F9F.1060401@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: Takashi Iwai , ALSA development , Mark Brown List-Id: alsa-devel@alsa-project.org On Wed, 2008-07-16 at 10:11 -0500, Timur Tabi wrote: > Takashi Iwai wrote: > > > In a simple case, you don't need hw_constraint functions. Just > > override the corresponding fields of runtime->hw in open callback. > > > > For example, pci/via82xx.c sets the current rate value to > > runtime->hw.rate_min/max if there is another stream. > > Are you talking about this code: > > } else { > /* a fixed rate */ > runtime->hw.rates = SNDRV_PCM_RATE_KNOT; > runtime->hw.rate_max = runtime->hw.rate_min = ratep->rate; > } > > Last I heard, ASoC doesn't work with SNDRV_PCM_RATE_KNOT. But I think I can > still use this method. I'll just need to use a real SNDRV_PCM_RATE_xxx value. > Supporting KNOT in the core is probably the best solution. It shouldn't be too hard at add .... Liam