OSDN Git Service

ASoC: SOF: Intel: hda-loader: add IMR restore support
authorKeyon Jie <yang.jie@linux.intel.com>
Thu, 20 Jan 2022 23:15:31 +0000 (17:15 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 24 Jan 2022 13:31:17 +0000 (13:31 +0000)
commit5fb5f51185126059e1d7eb4e452e08c7b17c3301
tree5aba0ca02a1d438d4848fc6fb31b94b1459b99f7
parenta749d744561ccc8658cebe23fc284034a57e6ceb
ASoC: SOF: Intel: hda-loader: add IMR restore support

If the firmware declares the IMR restore feature, we only need to do a
simple powering up to resume from D3, no firmware re-downloading
needed - the context is saved/restored to/from IMR without needing
driver support.

Add a hda_dsp_boot_imr() helper for this simple DSP reboot, and use it
when it is available.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
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/20220120231532.196926-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-loader.c