From patchwork Fri Nov 22 10:30:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 179960 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp13996ilf; Fri, 22 Nov 2019 02:32:55 -0800 (PST) X-Google-Smtp-Source: APXvYqy4GA7LhGZz47+6oUlqOaObtEd8LXqefyr3YuivDmg3ynxuigucdIymHtTWpzqGjAjsNx9S X-Received: by 2002:a5d:638a:: with SMTP id p10mr16165514wru.336.1574418775417; Fri, 22 Nov 2019 02:32:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574418775; cv=none; d=google.com; s=arc-20160816; b=gk9oLo0y32n6lAwfpZjer9qCjUboI82/Yg/xGHYJUm0LpEVBhxOIpTaIptKga/bXqF kin5cJGSFc5tnEnRC711UEwzXWApAXclLecVR6KvjbpL6JrCug+b5aDxtrZrteRv2oj3 m/+va4jnfoOjXlsndjgaaR8ix6NrXbCTGVcjVPJA4eJX2WAv/nSsRq+oI1q93NnEvijf VoILdNlyDb/FYM3hKcI3zYGHwHYSbFMKgVgku7RI2GWV125veY3sSFNPHUa+WwrB3iTI bD+ddTuMLOWUx92SFs+Lh+gg7VwSd0txwt8LXYWobUpp11KDnGWG5gPwPatFl7Sd8rHL cNgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-filter :delivered-to:dkim-signature:dkim-filter; bh=wz9lgGxIjzzWmUfw4OzODkp5E5qtcp6IZrhUEM+kneQ=; b=YwpIIHphpNU8KBQ4p/3V5z4bSP9o4jK3+aeTlHQHvIJ7kOUjswQMWX+vzL40kTjLOe xocLILKmzZTGg59t+M1P00SyEY9aoZltl5Neepu+Q7uZPo56H38FwivlNbEP9O0fWk15 4YPa2fZCyR7yStzRmCKv4OC2OE//Q5D7xDmrcYmtmHXe77HkcGImyz2CJXUVAMGRTUjB vFRN5F9rSxWlWEH8jYqvEA92kRcaVQPoB+DwfkbL2kHGM6iURXaP2s4KaTZsTl/k3wSj 48Lzitg4J46oCiXOhxWRLCjWgCp66i8xfiwK+75bEb4vmolqeYlzyf/42Tc0Z5lcQ0UC SUPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=Bjd7CkT0; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTPS id k2si2730913wma.182.2019.11.22.02.32.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Nov 2019 02:32:55 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=Bjd7CkT0; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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 634D017EB; Fri, 22 Nov 2019 11:32:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 634D017EB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1574418774; bh=64NfzvPtOsWCau5qJgK5rhUAZYlF5qjoNMc12gplpvw=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Bjd7CkT06V6a2KEmuRhy+QB222wyjppBQAnrcA3tv4VtEbVbL0trqUMSPTxcFADWO eDs+DakuTFqSd84uqDYsWzgEPS8cq5qwvutjh+00ggvNwg6QFGgIk/CNd+B9I6IN+m XOs+t2AaUCK82sLbxnbkob4JpF8hLAgIxI7Iqioo= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D9B07F8013F; Fri, 22 Nov 2019 11:32:03 +0100 (CET) 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 7AD92F80140; Fri, 22 Nov 2019 11:32:02 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS, SURBL_BLOCKED,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6F727F800EF for ; Fri, 22 Nov 2019 11:31:58 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6F727F800EF Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E259B1A00B2; Fri, 22 Nov 2019 11:31:57 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3903D1A01FD; Fri, 22 Nov 2019 11:31:52 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0071B4027F; Fri, 22 Nov 2019 18:31:44 +0800 (SGT) From: Shengjiu Wang To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, shengjiu.wang@nxp.com, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, allison@lohutok.net, tglx@linutronix.de, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Fri, 22 Nov 2019 18:30:13 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [alsa-devel] [RESEND PATCH] ASoC: wm8524: Add support S32_LE 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Allow 32bit sample with this codec. Signed-off-by: Shengjiu Wang --- sound/soc/codecs/wm8524.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.21.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/wm8524.c b/sound/soc/codecs/wm8524.c index 91e3d1570c45..4e9ab542f648 100644 --- a/sound/soc/codecs/wm8524.c +++ b/sound/soc/codecs/wm8524.c @@ -159,7 +159,9 @@ static int wm8524_mute_stream(struct snd_soc_dai *dai, int mute, int stream) #define WM8524_RATES SNDRV_PCM_RATE_8000_192000 -#define WM8524_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE) +#define WM8524_FORMATS (SNDRV_PCM_FMTBIT_S16_LE |\ + SNDRV_PCM_FMTBIT_S24_LE |\ + SNDRV_PCM_FMTBIT_S32_LE) static const struct snd_soc_dai_ops wm8524_dai_ops = { .startup = wm8524_startup,