Skip to content

Commit 732c678

Browse files
rfvirgiltiwai
authored andcommitted
ALSA: hda: cs35l56: Enable low-power hibernation mode on SPI
SPI hibernation is now supported with the latest hibernation/wake sequences in the shared ASoC code. This has a functional dependency on two commits: commit 3df761b ("ASoC: cs35l56: Wake transactions need to be issued twice") commit a47cf4d ("ASoC: cs35l56: Change hibernate sequence to use allow auto hibernate") 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: Richard Fitzgerald <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent d04ce41 commit 732c678

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sound/pci/hda/cs35l56_hda_spi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ static int cs35l56_hda_spi_probe(struct spi_device *spi)
2121
return -ENOMEM;
2222

2323
cs35l56->base.dev = &spi->dev;
24+
25+
#ifdef CS35L56_WAKE_HOLD_TIME_US
26+
cs35l56->base.can_hibernate = true;
27+
#endif
2428
cs35l56->base.regmap = devm_regmap_init_spi(spi, &cs35l56_regmap_spi);
2529
if (IS_ERR(cs35l56->base.regmap)) {
2630
ret = PTR_ERR(cs35l56->base.regmap);

0 commit comments

Comments
 (0)