ASoC: da7219: Fix pole orientation detection on certain headsets
authorAdam Thomson <DLG-Adam.Thomson.Opensource@dm.renesas.com>
Mon, 30 May 2022 13:22:22 +0000 (13:22 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 30 May 2022 15:00:25 +0000 (17:00 +0200)
commit06f5882122e3faa183d76c4ec2c92f4c38e2c7bb
tree855f531c115745958a3f9f1d8a15da0a16c3f071
parent5fa66f29937eb806997a4d1d3edd360ef4e93db9
ASoC: da7219: Fix pole orientation detection on certain headsets

It has been recently found that certain 'active' headsets can
be mis-detected as OMTP instead of CTIA, causing obvious issus
with audio quality. This relates to increased resistances which
negatively impacts the pole detection circuitry within the device.

To counter this, ground switches on both headphone channels are
available to enable/disable and these allow for the detection
process to operate as intended, even with active headsets. This
commit adds control of the ground switches to the AAD logic.

Signed-off-by: Adam Thomson <DLG-Adam.Thomson.Opensource@dm.renesas.com>
Link: https://lore.kernel.org/r/e0a627725c189dd50d6ce24571aed87fe2597395.1653916368.git.DLG-Adam.Thomson.Opensource@dm.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7219-aad.c