OSDN Git Service

ASoC: Intel: Skylake: power down all link in suspend
authorJeeja KP <jeeja.kp@intel.com>
Fri, 9 Oct 2015 08:01:51 +0000 (09:01 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 9 Oct 2015 10:19:01 +0000 (11:19 +0100)
This ensures that the link is not requesting any clock and the
PLL can turn off. The link is powered when controller is brought
out of reset.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl.c

index ca135b8..5319529 100644 (file)
@@ -173,6 +173,9 @@ static int skl_runtime_suspend(struct device *dev)
 
        /* enable controller wake up event */
        snd_hdac_chip_updatew(bus, WAKEEN, 0, STATESTS_INT_MASK);
+
+       snd_hdac_ext_bus_link_power_down_all(ebus);
+
        ret = skl_suspend_dsp(skl);
        if (ret < 0)
                return ret;