summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/dmic.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2022-04-18 11:18:30 +0800
committerMark Brown <broonie@kernel.org>2022-04-19 16:30:30 +0100
commit3271be0628917a97d8757b02b5bc40856fd03476 (patch)
tree20826ce10e5df362e3d8cee1bc103dde3a6c2c52 /sound/soc/codecs/dmic.c
parente65f2fce08fc708e65b544131999bdd933d09164 (diff)
downloadlinux-stable-3271be0628917a97d8757b02b5bc40856fd03476.tar.gz
linux-stable-3271be0628917a97d8757b02b5bc40856fd03476.tar.bz2
linux-stable-3271be0628917a97d8757b02b5bc40856fd03476.zip
ASoC: dmic: Add support for DSD data format
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>
Diffstat (limited to 'sound/soc/codecs/dmic.c')
-rw-r--r--sound/soc/codecs/dmic.c5
1 files changed, 4 insertions, 1 deletions
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,
};