OSDN Git Service

ASoC: SOF: add a power_down_notify method
authorMarcin Rajwa <marcin.rajwa@linux.intel.com>
Fri, 15 May 2020 13:59:52 +0000 (16:59 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 18 May 2020 12:24:54 +0000 (13:24 +0100)
commit3541aef1b83fa3a13e9c4ecc0919156ff2ec9c22
tree07bbffae9b954402f32a8e9bfca632cabef3f51b
parentc26fde3b15ed41f5f452f1da727795f787833287
ASoC: SOF: add a power_down_notify method

This patch adds a snd_sof_dsp_power_down_notify() method which aims to
prepare the DSP for the upcoming power down.
This new function make use of SOF_IPC_PM_CTX_SAVE message.

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200515135958.17511-3-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/pm.c
sound/soc/sof/sof-priv.h