]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: cs35l56: Change hibernate sequence to use allow auto hibernate
authorSimon Trimmer <simont@opensource.cirrus.com>
Fri, 6 Oct 2023 11:10:36 +0000 (12:10 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 6 Oct 2023 11:30:26 +0000 (12:30 +0100)
commita47cf4dac7dcc43ef25d009ca0ad28fc86ba0eef
treec1bd063839c6271f298dc9dc1c44f10bbe77ffa7
parentc98a0a83dccd19283da34a298876d26c7f06750f
ASoC: cs35l56: Change hibernate sequence to use allow auto hibernate

If the hardware uses SPI_MOSI, I2C_SCL or I2C_SDA as the wake source
the bus activity of sending HIBERNATE_NOW will wake up the amps that
were already put into hibernate.

ALLOW_AUTO_HIBERNATE tells the firmware to hibernate itself after a
timeout of a few seconds, giving the driver instances time to send this
before any amps have gone into hibernate.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231006111039.101914-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56-shared.c