From patchwork Thu Apr 4 11:50:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10885489 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 770C31669 for ; Thu, 4 Apr 2019 11:51:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C53C28A13 for ; Thu, 4 Apr 2019 11:51:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5066B28A3B; Thu, 4 Apr 2019 11:51:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9030628A13 for ; Thu, 4 Apr 2019 11:51:51 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7FE98161E; Thu, 4 Apr 2019 13:50:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7FE98161E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1554378709; bh=QLH5XZ0IXlCA7rCrpreaiWOnL7NW7XJrQu66MYMyOuE=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Lf9E8LdNkISXbLln8RZVxvDx4LXUnQOSJpGM5uZ65JjQ8d/v4p1EWV1/BSoIeY5A6 jtjo47g9MYdf0eFYbdRZXYPoQT9ms4oC6NpeML0naexXirVh4pzdhGFVYYjRxsccqU Q6kNWRm1IEZs9KZFJoFvKUBTozmQM8Z1IEDF8v9o= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C6D07F89631; Thu, 4 Apr 2019 13:50:58 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 01B59F89633; Thu, 4 Apr 2019 13:50:55 +0200 (CEST) Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 03958F80714 for ; Thu, 4 Apr 2019 13:50:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 03958F80714 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="qjim+RSV" Received: by mail-wm1-x342.google.com with SMTP id y197so3066858wmd.0 for ; Thu, 04 Apr 2019 04:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Z2/CoXo7oHFZHaZjncloW8yt4NzKpCTULQGuHVPCIyM=; b=qjim+RSVmqV5zUgypYEY7qNbq+oLvx7h4jcPi5wvE/GGgUB+drTFQPZ4JQ0UdTLmeH 6h/fyqnpoBexavZChAiNicMCan8y8QTaeRY2snkCGtzfoEgt/jMYx+I199VTO+IPpJTP tDRDNNzuUMKVNVt5Vkk2swprOOJY0lF2cV4K2UCQesTYtR9geEDMmmCAZt5GFaA5sPkI MoymKp0ML/HQ7/zznEwDLN9dUn4RulaGyv/rXO9o8OCXexLLVGHCDtoUUY7Miz3k72tZ 1uyjmZ2iYNeifXtCvaSSwaFrRyxK7MH4HJC4nRvb0k/KXxakn2WZpCBAElPbjbX1McMO oKLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Z2/CoXo7oHFZHaZjncloW8yt4NzKpCTULQGuHVPCIyM=; b=uYzuKSO6OvYZDWLh1Fr5KPcAd82EJVTgBA1oJgNFuVI1/IMLBOEYWu78cZjlsRjB4C +94dXGaPGL7W45AsMlZu0eb2wqBsg6Mw/K09Pqsw1BUnos1atpnAssFC1SWaGZs4vKa/ s2JSTu41Tx6EFr9lBn1Nj8NUZWRfDSYuW+lbO3TfJLVpGg+H+QcEVdYZSM8L4j9ywTvf 1+ICwMmODptlf/qmGsSxjY0kFsGDgTU8mygkHuK71ivgqNrlMqSn8lo5P5e37rJt+QSy YEk8j5eUmOtJpFGN9OH9TrYtFmKRsSbZAVV6gLznrxELephffdDWrLVNyjaimob/nLXF Ij9g== X-Gm-Message-State: APjAAAV1aNl+CCwQVQui7/uvclFdtcVa328+9YJBn4Jw2p2+BK+XXkh0 POa4nMumASq6CnYpVIWbrgQSdA== X-Google-Smtp-Source: APXvYqx4CP7iaLosKmM8Z7K4BgDFLDgizhg9DVAVaak5YOJR7MwLbsfyHRZzhiIWY8xGQ3+FqEkugg== X-Received: by 2002:a7b:c353:: with SMTP id l19mr3944897wmj.12.1554378652040; Thu, 04 Apr 2019 04:50:52 -0700 (PDT) Received: from boomer.local ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id z18sm32039468wrr.90.2019.04.04.04.50.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 04:50:51 -0700 (PDT) From: Jerome Brunet To: Mark Brown , Liam Girdwood Date: Thu, 4 Apr 2019 13:50:15 +0200 Message-Id: <20190404115015.32208-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Maxime Jourdan , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jerome Brunet Subject: [alsa-devel] [PATCH] ASoC: max98357a: add missing supported rates X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP According the publicly available datasheet (and some test) the max98357a also supports 32, 44.1 and 88.2 kHz sample rate. Signed-off-by: Jerome Brunet --- Datasheet is available here: https://datasheets.maximintegrated.com/en/ds/MAX98357A-MAX98357B.pdf sound/soc/codecs/max98357a.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/max98357a.c b/sound/soc/codecs/max98357a.c index d469576b5a7b..d037a3e4d323 100644 --- a/sound/soc/codecs/max98357a.c +++ b/sound/soc/codecs/max98357a.c @@ -97,7 +97,10 @@ static struct snd_soc_dai_driver max98357a_dai_driver = { SNDRV_PCM_FMTBIT_S32, .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | + SNDRV_PCM_RATE_32000 | + SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | + SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000, .rate_min = 8000, .rate_max = 96000,