Commit fc907cc5 authored by Ranjani Sridharan's avatar Ranjani Sridharan Committed by Mark Brown

ASoC: SOF: pm: handle resume on legacy Intel platforms

Add new case when set_power_state() is not supported, e.g. for Intel
Baytrail/Cherrytrail legacy platforms.
Signed-off-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tested-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20200526203640.25980-3-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent ddcccd54
...@@ -114,8 +114,12 @@ static int sof_resume(struct device *dev, bool runtime_resume) ...@@ -114,8 +114,12 @@ static int sof_resume(struct device *dev, bool runtime_resume)
return ret; return ret;
} }
/* Nothing further to do if resuming from a low-power D0 substate */ /*
if (!runtime_resume && old_state == SOF_DSP_PM_D0) * Nothing further to be done for platforms that support the low power
* D0 substate.
*/
if (!runtime_resume && sof_ops(sdev)->set_power_state &&
old_state == SOF_DSP_PM_D0)
return 0; return 0;
sdev->fw_state = SOF_FW_BOOT_PREPARE; sdev->fw_state = SOF_FW_BOOT_PREPARE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment