summaryrefslogtreecommitdiff
path: root/sound/soc/intel/sst
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@intel.com>2015-02-13 11:21:25 (GMT)
committerMark Brown <broonie@kernel.org>2015-02-14 04:49:46 (GMT)
commit7bd345c9e87d879d696c6843fe200b60c2051c84 (patch)
treeebe270d1fa6dad93237cc8dfc0bd48ed64c835c0 /sound/soc/intel/sst
parentbfa76d49576599a4b9f9b7a71f23d73d6dcff735 (diff)
downloadlinux-7bd345c9e87d879d696c6843fe200b60c2051c84.tar.xz
ASoC: Intel: set initial runtime PM status to active for ACPI-enumerated ADSP
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>
Diffstat (limited to 'sound/soc/intel/sst')
-rw-r--r--sound/soc/intel/sst/sst.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/intel/sst/sst.c b/sound/soc/intel/sst/sst.c
index 8a8d56a..d6ea800 100644
--- a/sound/soc/intel/sst/sst.c
+++ b/sound/soc/intel/sst/sst.c
@@ -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)