]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit540413693d732ab659b41a77eb487e9e355aca4d
tree5aba0ca02a1d438d4848fc6fb31b94b1459b99f7
parentce0a842dd101320c71ea09fbe00f3b84aaf5e3cb
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