From patchwork Thu Oct 15 11:16:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pascal Huerst X-Patchwork-Id: 7405061 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B655BBEEA4 for ; Thu, 15 Oct 2015 11:16:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF12E207D9 for ; Thu, 15 Oct 2015 11:16:37 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id A1A9F207C7 for ; Thu, 15 Oct 2015 11:16:36 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id DEC47265338; Thu, 15 Oct 2015 13:16:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NO_DNS_FOR_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 99DDC260462; Thu, 15 Oct 2015 13:16:26 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 39D88260464; Thu, 15 Oct 2015 13:16:24 +0200 (CEST) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by alsa0.perex.cz (Postfix) with ESMTP id 1C904260453 for ; Thu, 15 Oct 2015 13:16:17 +0200 (CEST) Received: by wicll6 with SMTP id ll6so35645186wic.0 for ; Thu, 15 Oct 2015 04:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=6qHH2txq0Jrg9XLJXji2YAOF1a7h+ppS70iEg6PBEnw=; b=Zgd95y+irf3/UZNdsAUSGYp/N87lGAzgyxqz4vZWdx9Aw+fzn3YVlFU04OBh3LR3Lt OIFV3a4pPJZWRbm4EZ4tYSkWumruYfcEyZ3tDaBskTt2oRejrhR1knccJAQRZJL9ss1U 1XdMUlMV4ndpXO3NnfSxLbS1SYBD65j4u4I37ktqauR9GkC6Bytw1rBjJk6KbXGgieOs Y0pbWFvU6XfCdXHRBkkPf0aIQkHXus3HBCzxtzC5p4oFZ/S9zKEbDPP6cbQmaPsHavgz MAlMkCL+KrD0T1LNgMfvAEb7hxIvGp1ibRVpNK2fUOtCNSH5dEoQAjPLdpyzGw5CpCny alKQ== X-Received: by 10.180.211.116 with SMTP id nb20mr10591325wic.50.1444907776777; Thu, 15 Oct 2015 04:16:16 -0700 (PDT) Received: from localhost.localdomain.localdomain ([212.91.253.218]) by smtp.gmail.com with ESMTPSA id r15sm11011186wib.18.2015.10.15.04.16.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2015 04:16:15 -0700 (PDT) From: pascal.huerst@gmail.com To: lars@metafoo.de Date: Thu, 15 Oct 2015 13:16:06 +0200 Message-Id: <1444907766-9892-1-git-send-email-pascal.huerst@gmail.com> X-Mailer: git-send-email 2.4.3 Cc: alsa-devel@alsa-project.org, Pascal Huerst Subject: [alsa-devel] [PATCH] ASoC: adau1701: Add 44.1 KHz to supported sample rates X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Pascal Huerst According to the datasheet, this device does also support 44.1 KHz as sample rate. This adds the necessary changes to support this. See Datasheet: Rev. B / page 39 / SR[1:0] Signed-off-by: Pascal Huerst --- sound/soc/codecs/adau1701.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/adau1701.c b/sound/soc/codecs/adau1701.c index de53c0d..8b3ba51 100644 --- a/sound/soc/codecs/adau1701.c +++ b/sound/soc/codecs/adau1701.c @@ -459,6 +459,7 @@ static int adau1701_hw_params(struct snd_pcm_substream *substream, case 96000: val = ADAU1701_DSPCTRL_SR_96; break; + case 44100: case 48000: val = ADAU1701_DSPCTRL_SR_48; break; @@ -623,8 +624,8 @@ static int adau1701_startup(struct snd_pcm_substream *substream, return sigmadsp_restrict_params(adau1701->sigmadsp, substream); } -#define ADAU1701_RATES (SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000 | \ - SNDRV_PCM_RATE_192000) +#define ADAU1701_RATES (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 |\ + SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000) #define ADAU1701_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ SNDRV_PCM_FMTBIT_S24_LE)