ASoC: dmic: Add support for DSD data format
authorShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 18 Apr 2022 03:18:30 +0000 (11:18 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 15:30:30 +0000 (16:30 +0100)
Add DSD format support in this generic dmic driver:
DSD_U8,
DSD_U16_LE,
DSD_U32_LE,

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1650251910-8932-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/dmic.c

index 5d079d9..d1a30ca 100644 (file)
@@ -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,
 };