projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23a58b7
)
ASoC: codecs: ES8326: button detect issue
author
Zhang Yi
<zhangyi@everest-semi.com>
Wed, 7 Aug 2024 02:53:55 +0000
(10:53 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 8 Aug 2024 19:34:49 +0000
(20:34 +0100)
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>
sound/soc/codecs/es8326.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/es8326.c
b/sound/soc/codecs/es8326.c
index b246694ebb4faa4d7aab7de3c9145eeed9e124b9..be3c79232a3180583ef64843860ad844bd2cc2cd 100644
(file)
--- a/
sound/soc/codecs/es8326.c
+++ b/
sound/soc/codecs/es8326.c
@@
-843,6
+843,8
@@
static void es8326_jack_detect_handler(struct work_struct *work)
es8326_disable_micbias(es8326->component);
if (es8326->jack->status & SND_JACK_HEADPHONE) {
dev_dbg(comp->dev, "Report hp remove event\n");
+ snd_soc_jack_report(es8326->jack, 0,
+ SND_JACK_BTN_0 | SND_JACK_BTN_1 | SND_JACK_BTN_2);
snd_soc_jack_report(es8326->jack, 0, SND_JACK_HEADSET);
/* mute adc when mic path switch */
regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x44);