ASoC: wm8524: Add support S32_LE
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 22 Nov 2019 10:30:13 +0000 (18:30 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 4 May 2020 18:23:59 +0000 (19:23 +0100)
Allow 32bit sample with this codec.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/cff745cc041c5208910821f0740f988926af8a66.1574418380.git.shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8524.c

index 91e3d1570c4571001fe8f0e3a485a0ddd7a96cb4..4e9ab542f648ec71cd80628b85ca1bdb2650fc71 100644 (file)
@@ -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,