ASoC: codecs: ES8326: Change Hp_detect register names
authorZhu Ning <zhuning0077@gmail.com>
Mon, 17 Jul 2023 03:32:19 +0000 (11:32 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 25 Jul 2023 11:11:50 +0000 (12:11 +0100)
commit4ddad00c609bdcd6635537d3acb9bd57a5fc79e6
treed1e79db1620db1b1280c3f4f581d1fec7c285b36
parent4005d1ba0a7e5cf32f669bf0014dca0dd12c2a44
ASoC: codecs: ES8326: Change Hp_detect register names

The old register naming method is confusing. The reg 0x57 decides
the default headset hardware connection type, and the reg 0xfb is
the headset detection status register, which changes during headset
insertion. Change the name to ES8326_HPDET_TYPE and ES8326_HPDET_STA.

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