]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb680c92faa1e25867d814f0cf44eeb28d506bf38
tree855f531c115745958a3f9f1d8a15da0a16c3f071
parentaec1c109427be89267a72ef5e46058e28dfae289
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