summaryrefslogtreecommitdiff
path: root/sound/pci/hda/cs35l41_hda_i2c.c
diff options
context:
space:
mode:
authorStefan Binding <sbinding@opensource.cirrus.com>2022-06-30 01:23:30 +0100
committerTakashi Iwai <tiwai@suse.de>2022-07-15 16:21:39 +0200
commit1873ebd30cc818eefd151e40a4bd05fd8f83b85a (patch)
tree3ba220d2d995f51e5e7df6925b360dc0559b1ba9 /sound/pci/hda/cs35l41_hda_i2c.c
parent29a249d72d31cde3cd24d43354b40019efdb48b1 (diff)
downloadlwn-1873ebd30cc818eefd151e40a4bd05fd8f83b85a.tar.gz
lwn-1873ebd30cc818eefd151e40a4bd05fd8f83b85a.zip
ALSA: hda: cs35l41: Support Hibernation during Suspend
CS35L41 supports hibernation during suspend when using DSP firmware. When the driver suspends it will hibernate the part, if firmware is running, and resume will wake from hibernation. CS35L41 driver will suspend/resume when requested by hda driver. Note that suspend/resume and hibernation is only supported when firmware is running. Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com> Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220630002335.366545-10-vitalyr@opensource.cirrus.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/cs35l41_hda_i2c.c')
-rw-r--r--sound/pci/hda/cs35l41_hda_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/cs35l41_hda_i2c.c b/sound/pci/hda/cs35l41_hda_i2c.c
index df39fc76e6be..9c08fa08c421 100644
--- a/sound/pci/hda/cs35l41_hda_i2c.c
+++ b/sound/pci/hda/cs35l41_hda_i2c.c
@@ -54,6 +54,7 @@ static struct i2c_driver cs35l41_i2c_driver = {
.driver = {
.name = "cs35l41-hda",
.acpi_match_table = cs35l41_acpi_hda_match,
+ .pm = &cs35l41_hda_pm_ops,
},
.id_table = cs35l41_hda_i2c_id,
.probe = cs35l41_hda_i2c_probe,