ASoC: cs42l43: Allow HP amp to cool off after current limit
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 11 Dec 2023 16:00:19 +0000 (16:00 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 11 Dec 2023 17:26:01 +0000 (17:26 +0000)
commitbbbc18d8c27cc9d40cc9a3b03b61e4df85311146
treeb71366c40dab8498302d28fb9fdc83304ceace4a
parent28b0b18d53469833bf513a87732c638775073ba4
ASoC: cs42l43: Allow HP amp to cool off after current limit

Whilst occasional current limiting is fine, constant current limiting
should be avoided. Add a back off system that will disable the
headphone amp, if a lot of current limiting is seen in a short window
of time.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://msgid.link/r/20231211160019.2034442-2-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l43-jack.c
sound/soc/codecs/cs42l43.c
sound/soc/codecs/cs42l43.h