ASoC: SOF: PM: add check before setting d0_substate
authorKeyon Jie <yang.jie@linux.intel.com>
Mon, 11 Nov 2019 22:33:41 +0000 (16:33 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 12 Nov 2019 12:10:21 +0000 (12:10 +0000)
commit58a972efd21bb5adadd97f2546693ec64bfc99b9
tree656583f38b51c82f8bb0034cbf3182db86a30606
parent74b4dd04b19cc03e1cc369d9c371cf4206367df4
ASoC: SOF: PM: add check before setting d0_substate

Add check before seeting d0_substate and return success if Audio DSP is
already in the target substate.

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/20191111223343.19986-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/pm.c