From: Takashi Iwai Subject: Re: Requiring the same sample rate for playback and record? Date: Thu, 17 Jul 2008 12:10:45 +0200 Message-ID: References: <485C0042.4050008@freescale.com> <487BC430.8040109@freescale.com> <487E49CF.7010709@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 mx1.suse.de (mail.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 0CA60243C9 for ; Thu, 17 Jul 2008 12:10:46 +0200 (CEST) In-Reply-To: <487E49CF.7010709@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 Wed, 16 Jul 2008 14:19:43 -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. > > It looks like ASoC overwrites runtime->hw in *its* _open callback, so I have to > use the hw_constraint functions. Then you can call like: snd_pcm_hw_constraint_minmax(substream->runtime, SNDRV_PCM_HW_PARAM_RATE, fixed_rate, fixed_rate); Takashi