Skip to content

Commit fec9c7f

Browse files
Michael-zy2000broonie
authored andcommitted
ASoC: codecs: ES8326: Removing the control of ADC_SCALE
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 <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 6e5f5bf commit fec9c7f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sound/soc/codecs/es8326.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,6 @@ static void es8326_jack_detect_handler(struct work_struct *work)
835835
dev_dbg(comp->dev, "Report hp remove event\n");
836836
snd_soc_jack_report(es8326->jack, 0, SND_JACK_HEADSET);
837837
/* mute adc when mic path switch */
838-
regmap_write(es8326->regmap, ES8326_ADC_SCALE, 0x33);
839838
regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x44);
840839
regmap_write(es8326->regmap, ES8326_ADC2_SRC, 0x66);
841840
es8326->hp = 0;
@@ -894,7 +893,6 @@ static void es8326_jack_detect_handler(struct work_struct *work)
894893
snd_soc_jack_report(es8326->jack,
895894
SND_JACK_HEADSET, SND_JACK_HEADSET);
896895

897-
regmap_write(es8326->regmap, ES8326_ADC_SCALE, 0x33);
898896
regmap_update_bits(es8326->regmap, ES8326_PGA_PDN,
899897
0x08, 0x08);
900898
regmap_update_bits(es8326->regmap, ES8326_PGAGAIN,

0 commit comments

Comments
 (0)