ALSA: hda: cs35l56: Enable low-power hibernation mode on i2c
authorSimon Trimmer <simont@opensource.cirrus.com>
Mon, 13 Nov 2023 16:40:29 +0000 (16:40 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 13 Nov 2023 16:44:30 +0000 (17:44 +0100)
commitd02ef87db9d6137fc2a98231b92f24ead4f7966d
tree8331a1610abb5eed915b2c9cce1f04720477156e
parent713f040cd22285fcc506f40a0d259566e6758c3c
ALSA: hda: cs35l56: Enable low-power hibernation mode on i2c

This can now be re-enabled as the sequence to reliably wake the device
has been implemented in the shared ASoC code.

This has a functional dependency on commit 3df761bdbc8b
("ASoC: cs35l56: Wake transactions need to be issued twice")

To protect against this, enabling hibernation is conditional on
CS35L56_WAKE_HOLD_TIME_US being defined, which indicates that the new
hibernation sequences are available.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231113164029.1156669-1-rf@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l56_hda_i2c.c