ASoC: cs42l83: Extend CS42L42 support to new part
authorMartin Povišer <povik+lin@cutebit.org>
Thu, 15 Sep 2022 09:44:42 +0000 (11:44 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 19 Sep 2022 17:05:35 +0000 (18:05 +0100)
commit94d5f62a91aab6ac9c3f4abfd048cbe5f77153ac
tree1bbd233e39f093e3a751839e8e4737f331d8c939
parent30b679e2cb058c3dcf6d3ebdf10999f0a7a1644d
ASoC: cs42l83: Extend CS42L42 support to new part

The CS42L83 part is a headphone jack codec found in recent Apple
machines. It is a publicly undocumented part but as far as can be told
it is identical to CS42L42 except for two points:

 * The chip ID is different.

 * Of those registers for which we have a default value in the existing
   CS42L42 kernel driver, one register (MCLK_CTL) differs in its reset
   value on CS42L83.

To address those two points (and only those), add to the CS42L42 driver
a separate CS42L83 front.

Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220915094444.11434-10-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
MAINTAINERS
include/sound/cs42l42.h
sound/soc/codecs/Kconfig
sound/soc/codecs/Makefile
sound/soc/codecs/cs42l42-i2c.c
sound/soc/codecs/cs42l42.c
sound/soc/codecs/cs42l42.h
sound/soc/codecs/cs42l83-i2c.c [new file with mode: 0644]