Skip to content

Commit

Permalink
ASoC: Intel: set initial runtime PM status to active for ACPI-enumera…
Browse files Browse the repository at this point in the history
…ted 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>
  • Loading branch information
Mengdong Lin authored and Mark Brown committed Feb 14, 2015
1 parent bfa76d4 commit 7bd345c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/soc/intel/sst/sst.c
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 7bd345c

Please sign in to comment.