ASoC: cs35l41: Create shared function for errata patches
authorLucas Tanure <tanureal@opensource.cirrus.com>
Fri, 17 Dec 2021 11:57:02 +0000 (11:57 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 31 Dec 2021 13:21:03 +0000 (13:21 +0000)
commit8b2278604b6de27329ec7ed82ca696c4751111b6
tree3aae2dba05a5c2971ce4ea46e67392143a483cc0
parent062ce0593315e22aac527389dd6dd4328c49f0fb
ASoC: cs35l41: Create shared function for errata patches

ASoC and HDA systems require the same errata patches, so
move it to the shared code using a function the correctly
applies the patches by revision

Also, move CS35L41_DSP1_CCM_CORE_CTRL write to errata
patch function as is required to be written at boot,
but not in regmap_register_patch sequence as will affect
waking up from hibernation

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211217115708.882525-5-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/cs35l41.h
sound/soc/codecs/cs35l41-lib.c
sound/soc/codecs/cs35l41.c