diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2022-04-18 05:18:30 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-19 17:30:30 +0200 |
commit | 3271be0628917a97d8757b02b5bc40856fd03476 (patch) | |
tree | 20826ce10e5df362e3d8cee1bc103dde3a6c2c52 /sound/soc/codecs/dmic.c | |
parent | ASoC: codecs: wm8962: using pm_runtime_resume_and_get instead of pm_runtime_g... (diff) | |
download | linux-3271be0628917a97d8757b02b5bc40856fd03476.tar.xz linux-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.c | 5 |
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, }; |