]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: es8316: Enable support for S32 LE format
authorMarian Postevca <posteuca@mutex.one>
Tue, 29 Aug 2023 22:01:12 +0000 (01:01 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:24:07 +0000 (01:24 +0100)
This CODEC does support the S32 LE format in es8316_pcm_hw_params(),
but doesn't have it enabled in ES8316_FORMATS. Enable it so that we
have more options to match with components.

Signed-off-by: Marian Postevca <posteuca@mutex.one>
Link: https://lore.kernel.org/r/20230829220116.1159-2-posteuca@mutex.one
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8316.c

index a8f347f1affbdc44d63aa3612850e5fc6f4795c7..09fc0b25f6007e8d38486406b67dd25983e71161 100644 (file)
@@ -526,7 +526,7 @@ static int es8316_mute(struct snd_soc_dai *dai, int mute, int direction)
 }
 
 #define ES8316_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
-                       SNDRV_PCM_FMTBIT_S24_LE)
+                       SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
 
 static const struct snd_soc_dai_ops es8316_ops = {
        .startup = es8316_pcm_startup,