ASoC: codecs: ES8326: solve hp and button detect issue
authorZhang Yi <zhangyi@everest-semi.com>
Wed, 15 May 2024 06:25:17 +0000 (14:25 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 15 May 2024 15:38:16 +0000 (16:38 +0100)
commit714f5df027b085c19c32af6f08a959bf35b9fb7c
tree5e75900fcaa7434d060ee0ed9b37c1ec75df3b0b
parent1f900475314ef258af1a4c11bc9096fe2ffe263f
ASoC: codecs: ES8326: solve hp and button detect issue

We got an error report about headphone type detection and button detection.
We fixed the headphone type detection error by adjusting the condition
of setting es8326->hp to 0.And we fixed the button detection error by
adjusting micbias and vref.

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