diff options
author | Vinod Koul <vinod.koul@intel.com> | 2015-12-18 15:12:05 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-01-10 12:19:02 +0000 |
commit | c2e20cd8187cb576362e7c8ecb0b1c51eedb2686 (patch) | |
tree | a77c6205b382aa39bc8a10cccf931715aa1750e3 | |
parent | 721c3e36f774150f453216efcf5e1895577ac68c (diff) | |
download | op-kernel-dev-c2e20cd8187cb576362e7c8ecb0b1c51eedb2686.zip op-kernel-dev-c2e20cd8187cb576362e7c8ecb0b1c51eedb2686.tar.gz |
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: Jayachandran B <jayachandran.b@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/skylake/skl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c index dd38f5f..80a5f64 100644 --- a/sound/soc/intel/skylake/skl.c +++ b/sound/soc/intel/skylake/skl.c @@ -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); } |