ASoC: cs35l41: Add common cs35l41 enter hibernate function
authorStefan Binding <sbinding@opensource.cirrus.com>
Wed, 25 May 2022 13:16:32 +0000 (14:16 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 11:34:35 +0000 (12:34 +0100)
commite341efc308e5374ded6b471f9e1ec01450bcc93e
tree17be5d8b5b8eb4b8f6fb1a0cdb6926b7131c0e06
parent94e0bc317ad241c022a6bb311b3a28b4d51ea8b6
ASoC: cs35l41: Add common cs35l41 enter hibernate function

Since the CS35L41 HDA driver also support hibernation, it
makes sense to move code from the ASoC driver to enter
hibernation into common code.

Since HDA must support laptops which do not support hibernation
due to lack of external boost GPIO it is necessary to
ensure the function returns an error when an unsupported
boost type is in use.

Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220525131638.5512-12-vitalyr@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