diff options
author | Keyon Jie <yang.jie@linux.intel.com> | 2019-10-26 00:40:58 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-10-28 15:39:53 +0100 |
commit | 09fe6b528886c0d07ce539b837749edcc46618d0 (patch) | |
tree | 80d2fcfe9d683879490bd3f790c3b0543c318303 /sound/soc/sof/pm.c | |
parent | ASoC: SOF: add a field to store the current D0 substate of DSP (diff) | |
download | linux-09fe6b528886c0d07ce539b837749edcc46618d0.tar.xz linux-09fe6b528886c0d07ce539b837749edcc46618d0.zip |
ASoC: SOF: reset default d0_substate at probe() and resume()
We initialize/reset d0_substate to default d0i0 value when doing
transition D3-->D0, e.g. at success of probing and resuming.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191025224122.7718-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/pm.c')
-rw-r--r-- | sound/soc/sof/pm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sof/pm.c b/sound/soc/sof/pm.c index e23beaeefe00..81e623dfc7e5 100644 --- a/sound/soc/sof/pm.c +++ b/sound/soc/sof/pm.c @@ -326,6 +326,9 @@ static int sof_resume(struct device *dev, bool runtime_resume) "error: ctx_restore ipc error during resume %d\n", ret); + /* initialize default D0 sub-state */ + sdev->d0_substate = SOF_DSP_D0I0; + return ret; } |