Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2467474pxb; Mon, 18 Apr 2022 00:17:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuBnVeTxzZ92IDJ3A5CY8f0oaf3XZEExFwyayhFiGn0TdZaUXCSwKEsKvPypORGkV90rDo X-Received: by 2002:a63:5847:0:b0:399:3452:ffe4 with SMTP id i7-20020a635847000000b003993452ffe4mr9040411pgm.406.1650266271630; Mon, 18 Apr 2022 00:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650266271; cv=none; d=google.com; s=arc-20160816; b=EN2Hfex3tnlQEaK7E4iYhvDJAHCm9yeHvsex2oHuHkMcOBOqOOuxwd7WkFSDLMFpgI yd6cjyy+fV6j5V1w/9KyXifrSiclGQj/iTZSXn2ZBvikcp+fU8aPRCSufMIWmtbiKhUb nKAkBPT6TzrWVMCw5m+YuaaAAo1FZvfZaP/tMb4eYAlDmau1xdR8B9qMzyoj0EtpnhCE BMw3zLzIPTVcFTR4KWqL/VwuxH3bSw7h3wPj2ecrG/+/grAy87AHkwYE0dqmTUHxU8LR F75UPSQEYO4p48csmIRfPgydIA0qnxStFkOGibQxBAOg9skDc4ZXM7/AAO4bAXvATccE DL/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=0C/4Vci8TcICKKd7SIYfgxG03J/0LVIuwf0vWKqgsg8=; b=V0E5zM0Ds8BCsofBMouTrhmdCRwIjVGrSiCxgaMtgdQu3yQ6bFPKRuXSM+7J7CWzhw JhATsDjQ08Dm4trVEXGBGP6ckupezqERFOmDtuTnUeGAC+FST2tdLjNWwjsNwFeWciWL 0WcOokT8QpDjAHzx7fTtXJ08wSx0XYPZbiVN9S5jDMb2qsvDhhhDP1WYP9KVL37KfPFi u1tj6TbPdbBncRD6cPAj0x2yZX46RJ1oVIJEV85LrXPnLJORwg5oUK+LdTuxzukvvCRJ vgqAU/fVfPH9QwGeEOHbdWl8Y9vFKzniOwWOyZpbzideb++OtusLxMdkDnEDd3o73J69 03yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j191-20020a6380c8000000b003a9f9aad1a6si1974435pgd.284.2022.04.18.00.17.35; Mon, 18 Apr 2022 00:17:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233153AbiDRDcl (ORCPT + 99 others); Sun, 17 Apr 2022 23:32:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiDRDci (ORCPT ); Sun, 17 Apr 2022 23:32:38 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0CB7B33 for ; Sun, 17 Apr 2022 20:29:59 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 78B191A11AD; Mon, 18 Apr 2022 05:29:57 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 41AA11A1145; Mon, 18 Apr 2022 05:29:57 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 032D31800096; Mon, 18 Apr 2022 11:29:55 +0800 (+08) From: Shengjiu Wang To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: shengjiu.wang@gmail.com Subject: [PATCH] ASoC: dmic: Add support for DSD data format Date: Mon, 18 Apr 2022 11:18:30 +0800 Message-Id: <1650251910-8932-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DSD format support in this generic dmic driver: DSD_U8, DSD_U16_LE, DSD_U32_LE, Signed-off-by: Shengjiu Wang --- sound/soc/codecs/dmic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/dmic.c b/sound/soc/codecs/dmic.c index 5d079d90fd3b..d1a30ca4571a 100644 --- a/sound/soc/codecs/dmic.c +++ b/sound/soc/codecs/dmic.c @@ -82,7 +82,10 @@ static struct snd_soc_dai_driver dmic_dai = { .rates = SNDRV_PCM_RATE_CONTINUOUS, .formats = SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S24_LE - | SNDRV_PCM_FMTBIT_S16_LE, + | SNDRV_PCM_FMTBIT_S16_LE + | SNDRV_PCM_FMTBIT_DSD_U8 + | SNDRV_PCM_FMTBIT_DSD_U16_LE + | SNDRV_PCM_FMTBIT_DSD_U32_LE, }, .ops = &dmic_dai_ops, }; -- 2.17.1