Skip to content

Commit 4684a2d

Browse files
Michael-zy2000broonie
authored andcommitted
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>
1 parent 23a58b7 commit 4684a2d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sound/soc/codecs/es8326.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,8 @@ static void es8326_jack_detect_handler(struct work_struct *work)
843843
es8326_disable_micbias(es8326->component);
844844
if (es8326->jack->status & SND_JACK_HEADPHONE) {
845845
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);
846848
snd_soc_jack_report(es8326->jack, 0, SND_JACK_HEADSET);
847849
/* mute adc when mic path switch */
848850
regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x44);

0 commit comments

Comments
 (0)