ASoC: codecs: ES8326: Add es8326_mute function
authorZhu Ning <zhuning0077@gmail.com>
Fri, 14 Jul 2023 03:24:49 +0000 (11:24 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 14 Jul 2023 13:44:27 +0000 (14:44 +0100)
commit083912c240de0c5f797da0443f5a99e87b75fcb3
tree7d881b9d40e95574b62c9149be16042851142826
parent2edd6419f2a224823534b260627c64c376735e00
ASoC: codecs: ES8326: Add es8326_mute function

The internal analog power and hp Vref of es8326 should always be on to
reduce pop noise. The HP_VOL and HP_CAL are moved to es8326_mute function
so they are turned on at last and turned off at first.

Also, the calibration should be done manually once during start-up
to reduce DC offset on headphone.

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