ASoC: codecs: ES8326: Improving the THD+N performance
authorZhu Ning <zhuning0077@gmail.com>
Sat, 20 Jan 2024 10:12:37 +0000 (18:12 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 22 Jan 2024 15:28:54 +0000 (15:28 +0000)
commit14a0a1ec3335ac3945a96437c35465e4a9616b88
tree3002ef72a4a92b9cf83681ce2bd3274befa1ea89
parent523d242d4309797e6b27c708fbd1463f301c199a
ASoC: codecs: ES8326: Improving the THD+N performance

We update the values of some registers in the initialization
sequence in es8326_resume function to improve THD+N performance.
THD+N performance decreases if the output level on headphone is
close to full scale. So we change the register setting in
es8326_jack_detect_handler function to improve THD+N performance
if headphone pulgged. Also, the register setting should be restored
when the headset is unplugged

Signed-off-by: Zhu Ning <zhuning0077@gmail.com>
Link: https://msgid.link/r/20240120101240.12496-3-zhuning0077@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8326.c
sound/soc/codecs/es8326.h