From 29b867d8351de378704775d3733bfb589c48ab1f Mon Sep 17 00:00:00 2001 From: Zhang Yi Date: Mon, 26 Oct 2026 13:48:37 +0800 Subject: [PATCH] ASoC: codecs: es*: Modify the maximum value of DMIC_GAIN The Kcontrol related to DMIC_GAIN affects bits[3:2]. However, the old code sets ES8375_DMIC_GAIN_MAX to 4, which causes the Kcontrol to affect bits [4:2],this is incorrect. Therefore, change ES8375_DMIC_GAIN_MAX to 3. Fixes: de2b3119f9f7 ("ASoC: codecs: add support for ES8375") Reviewed-by: HyeongJun An Signed-off-by: Zhang Yi Link: https://patch.msgid.link/20261026054837.13618-3-zhangyi@everest-semi.com Signed-off-by: Mark Brown --- sound/soc/codecs/es8375.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/es8375.h b/sound/soc/codecs/es8375.h index b48d03b1f689..de133437cefe 100644 --- a/sound/soc/codecs/es8375.h +++ b/sound/soc/codecs/es8375.h @@ -94,7 +94,7 @@ // Function values #define ES8375_ADC_OSR_GAIN_MAX 0x3F -#define ES8375_DMIC_GAIN_MAX 0x04 +#define ES8375_DMIC_GAIN_MAX 0x03 #define ES8375_ADC_AUTOMUTE_ATTN_MAX 0x1F #define ES8375_AUTOMUTE_NG_MAX 0x07 #define ES8375_ADC_VOLUME_MAX 0xFF