aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs35l45-spi.c
diff options
context:
space:
mode:
authorVlad.Karpovich <vkarpovi@opensource.cirrus.com>2023-03-15 10:47:22 -0500
committerMark Brown <broonie@kernel.org>2023-03-21 12:46:42 +0000
commit6c07be8fe92c6b0c24ee1c599601dce3506b83c7 (patch)
treefcf50455ab68733a03d3c49201826bf7c1b8337b /sound/soc/codecs/cs35l45-spi.c
parent74b14e2850a34740c121cf2758d4181063d4c77c (diff)
downloadlinux-6c07be8fe92c6b0c24ee1c599601dce3506b83c7.tar.gz
linux-6c07be8fe92c6b0c24ee1c599601dce3506b83c7.tar.bz2
linux-6c07be8fe92c6b0c24ee1c599601dce3506b83c7.zip
ASoC: cs35l45: Hibernation support
Adds support for a low-power Hibernation State. Add support for a low-power hibernation state for the DSP. In this state the DSP RAM contents are maintained, such that firmware does not need to be re-downloaded, but the rest of the chip's register state is lost. Entry to this state is achieved via the register interface (either by an external driver using the control port, or the programmable DSP). Exit from this state is triggered by activity on device GPIO pins, intended SPI transaction, or I2C transaction with intended slave address. Signed-off-by: Vlad Karpovich <vkarpovi@opensource.cirrus.com> Link: https://lore.kernel.org/r/167933511185.26.10641185496218226278@mailman-core.alsa-project.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs35l45-spi.c')
-rw-r--r--sound/soc/codecs/cs35l45-spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs35l45-spi.c b/sound/soc/codecs/cs35l45-spi.c
index 99657325a281..a00b23b4180c 100644
--- a/sound/soc/codecs/cs35l45-spi.c
+++ b/sound/soc/codecs/cs35l45-spi.c
@@ -36,6 +36,7 @@ static int cs35l45_spi_probe(struct spi_device *spi)
cs35l45->dev = dev;
cs35l45->irq = spi->irq;
+ cs35l45->bus_type = CONTROL_BUS_SPI;
return cs35l45_probe(cs35l45);
}