ASoC: cs42l43: Don't enable bias sense during type detect
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 11 Dec 2023 16:00:18 +0000 (16:00 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 11 Dec 2023 17:25:51 +0000 (17:25 +0000)
commitdc96528b176fa6e55a3dc01060fe9d97be450ce9
treec6620841b6a064e33d840c4d348966c5ccc62e0c
parent02a914ed475dd928c7b2b6c9d1da9b0b27fa724d
ASoC: cs42l43: Don't enable bias sense during type detect

Alas on some headsets the bias sense can cause problems with the
type detection. It can occasionally be falsely triggered by the type
detect itself and as the clamp is applied when this happens, it will
cause a headset to be incorrectly identified as headphones. As
such it should be disabled whilst running type detect. This does
mean a jack removal during type detect will cause a larger click
but that is unfortunately unavoidable.

Fixes: 1e4ce0d5c023 ("ASoC: cs42l43: Move headset bias sense enable earlier in process")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://msgid.link/r/20231211160019.2034442-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l43-jack.c