ASoC: cs35l41: Only disable internal boost
authorLucas Tanure <lucas.tanure@collabora.com>
Thu, 23 Feb 2023 08:43:21 +0000 (08:43 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 5 Mar 2023 23:36:41 +0000 (23:36 +0000)
commit4658de99d43cd740e019e7fd124b4128f8f4027f
tree292fb062aa49dede8b5ce01ec19f46b4383947f5
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
ASoC: cs35l41: Only disable internal boost

In error situations, only the internal boost case should be disabled and
re-enabled.
Also, for other boost cases re-enabling the boost to the default internal
boost config is incorrect.

Fixes: 6450ef559056 ("ASoC: cs35l41: CS35L41 Boosted Smart Amplifier")
Signed-off-by: Lucas Tanure <lucas.tanure@collabora.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: David Rhodes <david.rhodes@cirrus.com>
Link: https://lore.kernel.org/r/20230223084324.9076-2-lucas.tanure@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l41.c