]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a8589f3d0d6499a33544759b56029d8998a9ffb
tree656583f38b51c82f8bb0034cbf3182db86a30606
parent9f0cf8c3ca0bc3a5c02629c166d3a964b3e61786
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