Commit c2e20cd8 authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown

ASoC: Intel: Skylake: manage link power in active suspend

When device enters active suspend, we should turn off the links
as they are not in use. Similarly we need to bring back links
when we exit active suspend.
Signed-off-by: default avatarJayachandran B <jayachandran.b@intel.com>
Signed-off-by: default avatarSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 721c3e36
...@@ -224,6 +224,7 @@ static int skl_suspend(struct device *dev) ...@@ -224,6 +224,7 @@ static int skl_suspend(struct device *dev)
* running, we need to save the state for these and continue * running, we need to save the state for these and continue
*/ */
if (skl->supend_active) { if (skl->supend_active) {
snd_hdac_ext_bus_link_power_down_all(ebus);
pci_save_state(pci); pci_save_state(pci);
pci_disable_device(pci); pci_disable_device(pci);
return 0; return 0;
...@@ -246,6 +247,7 @@ static int skl_resume(struct device *dev) ...@@ -246,6 +247,7 @@ static int skl_resume(struct device *dev)
if (skl->supend_active) { if (skl->supend_active) {
pci_restore_state(pci); pci_restore_state(pci);
ret = pci_enable_device(pci); ret = pci_enable_device(pci);
snd_hdac_ext_bus_link_power_up_all(ebus);
} else { } else {
ret = _skl_resume(ebus); ret = _skl_resume(ebus);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment