ASoC: codecs: ES8326: Removing the control of ADC_SCALE
authorZhang Yi <zhangyi@everest-semi.com>
Tue, 2 Apr 2024 06:20:43 +0000 (14:20 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 2 Apr 2024 14:54:19 +0000 (15:54 +0100)
We removed the configuration of ES8326_ADC_SCALE
in es8326_jack_detect_handler because user changed
the configuration by snd_controls

Signed-off-by: Zhang Yi <zhangyi@everest-semi.com>
Link: https://msgid.link/r/20240402062043.20608-5-zhangyi@everest-semi.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8326.c

index fa809ab41a4aec147f36951085d0a6253ab367bc..17bd6b5160772e01d8597767868a9d2472cae276 100644 (file)
@@ -835,7 +835,6 @@ static void es8326_jack_detect_handler(struct work_struct *work)
                        dev_dbg(comp->dev, "Report hp remove event\n");
                        snd_soc_jack_report(es8326->jack, 0, SND_JACK_HEADSET);
                        /* mute adc when mic path switch */
-                       regmap_write(es8326->regmap, ES8326_ADC_SCALE, 0x33);
                        regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x44);
                        regmap_write(es8326->regmap, ES8326_ADC2_SRC, 0x66);
                        es8326->hp = 0;
@@ -894,7 +893,6 @@ static void es8326_jack_detect_handler(struct work_struct *work)
                        snd_soc_jack_report(es8326->jack,
                                        SND_JACK_HEADSET, SND_JACK_HEADSET);
 
-                       regmap_write(es8326->regmap, ES8326_ADC_SCALE, 0x33);
                        regmap_update_bits(es8326->regmap, ES8326_PGA_PDN,
                                        0x08, 0x08);
                        regmap_update_bits(es8326->regmap, ES8326_PGAGAIN,