ASoC: SOF: PM: implement prepare/complete callbacks
authorKeyon Jie <yang.jie@linux.intel.com>
Fri, 25 Oct 2019 22:41:17 +0000 (17:41 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 28 Oct 2019 14:45:33 +0000 (14:45 +0000)
commit0b50b3b1c3bc2a2c9eeab418b3de3e60e0530cf4
tree0870669fceacc91436882c7d1d0a4cedab8de54c
parent4cd933abd4820da7eefe672ff439b32d199a07be
ASoC: SOF: PM: implement prepare/complete callbacks

Implement the prepare() and complete() callbacks for power management,
initialize s0_suspend flag at prepare(), and reset it at complete().

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