ASoC: Intel: set initial runtime PM status to active for ACPI-enumerated ADSP
authorMengdong Lin <mengdong.lin@intel.com>
Fri, 13 Feb 2015 11:21:25 +0000 (19:21 +0800)
committerMark Brown <broonie@kernel.org>
Sat, 14 Feb 2015 04:49:46 +0000 (13:49 +0900)
The ADSP on Braswell/Baytrail is an ACPI device. This patch sets its initial
runtime PM status to active. Otherwise, its initial status is suspended and
runtime_suspend ops will not be called after probe and thus cannot further
trigger ACPI _PS3 (D3) method to put the device into low power D3cold state.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/sst/sst.c

index 8a8d56a146e75a19d4587e169cb967b730b3eb36..d6ea80076ea21cc1f7e6741b74e54c1657c62690 100644 (file)
@@ -379,6 +379,10 @@ void sst_configure_runtime_pm(struct intel_sst_drv *ctx)
         * initially active. So change the state to active before
         * enabling the pm
         */
+
+       if (!acpi_disabled)
+               pm_runtime_set_active(ctx->dev);
+
        pm_runtime_enable(ctx->dev);
 
        if (acpi_disabled)