From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergej Sawazki Subject: Re: ASoC machine driver: how to configure supported frame rates? Date: Fri, 10 Oct 2014 22:42:53 +0200 Message-ID: <543844CD.6010409@gmx.de> References: <54380559.7030807@gmx.de> <5438256D.8040605@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by alsa0.perex.cz (Postfix) with ESMTP id 5A800260629 for ; Fri, 10 Oct 2014 22:42:54 +0200 (CEST) In-Reply-To: <5438256D.8040605@metafoo.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Lars-Peter Clausen Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Am 10.10.2014 um 20:29 schrieb Lars-Peter Clausen: > On 10/10/2014 06:12 PM, Sergej Sawazki wrote: >> Dear all, >> >> I'm writing an ALSA SoC machine driver. The codec on my board, as well >> as the cpu do support the following rates: SNDRV_PCM_RATE_8000_192000 >> >> However, the codec, as well as the cpu are clock slaves and the clocks >> are fixed. Hence, my board does only support the 96kHz sample rate. >> >> Can someone give me some advice on how to tell ALSA that my board does >> only support the rate SNDRV_PCM_RATE_96000? >> I don't want to modify the codec and the platform driver. >> >> Any help would be highly appreciated. Thanks! > > You can apply additional constraints in the startup callback of the > snd_soc_ops of DAI link in your board driver. > > For example see sound/soc/samsung/h1940_uda1380.c > > - Lars > Lars, thanks for you help. It is working. - Sergej