Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: ES8326: button detect issue

We find that we need to set snd_jack_types to 0. If not,
there will be a probability of button detection errors

Signed-off-by: Zhang Yi <zhangyi@everest-semi.com>
Link: https://patch.msgid.link/20240807025356.24904-2-zhangyi@everest-semi.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Zhang Yi and committed by
Mark Brown
4684a2df 23a58b78

+2
+2
sound/soc/codecs/es8326.c
··· 843 843 es8326_disable_micbias(es8326->component); 844 844 if (es8326->jack->status & SND_JACK_HEADPHONE) { 845 845 dev_dbg(comp->dev, "Report hp remove event\n"); 846 + snd_soc_jack_report(es8326->jack, 0, 847 + SND_JACK_BTN_0 | SND_JACK_BTN_1 | SND_JACK_BTN_2); 846 848 snd_soc_jack_report(es8326->jack, 0, SND_JACK_HEADSET); 847 849 /* mute adc when mic path switch */ 848 850 regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x44);