ASoC: Intel: Skylake: manage link power in active suspend
authorVinod Koul <[email protected]>
Fri, 18 Dec 2015 09:42:05 +0000 (15:12 +0530)
committerMark Brown <[email protected]>
Sun, 10 Jan 2016 12:19:02 +0000 (12:19 +0000)
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: Jayachandran B <[email protected]>
Signed-off-by: Subhransu S. Prusty <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/intel/skylake/skl.c

index dd38f5feb7c03e8c7ead8543ed868c6da0b6ae72..80a5f6456acaecad4ea6e1e4c2f1f08eac25b99d 100644 (file)
@@ -224,6 +224,7 @@ static int skl_suspend(struct device *dev)
         * running, we need to save the state for these and continue
         */
        if (skl->supend_active) {
+               snd_hdac_ext_bus_link_power_down_all(ebus);
                pci_save_state(pci);
                pci_disable_device(pci);
                return 0;
@@ -246,6 +247,7 @@ static int skl_resume(struct device *dev)
        if (skl->supend_active) {
                pci_restore_state(pci);
                ret = pci_enable_device(pci);
+               snd_hdac_ext_bus_link_power_up_all(ebus);
        } else {
                ret = _skl_resume(ebus);
        }