OSDN Git Service

ASoC: SOF: add flag to disable IMR restore to sof_debug
authorKeyon Jie <yang.jie@linux.intel.com>
Thu, 20 Jan 2022 23:15:32 +0000 (17:15 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 24 Jan 2022 13:31:18 +0000 (13:31 +0000)
commitd7a8fbd17bfef174e85d81d94507b8015732a58e
tree6c7d317389575939111cfd46026d98dac72760a3
parent5fb5f51185126059e1d7eb4e452e08c7b17c3301
ASoC: SOF: add flag to disable IMR restore to sof_debug

Add flag _IGNORE_D3_PERSISTENT to disable IMR restore feature to
the sof_debug module parameter.

The IMR restore feature will be enabled for all Intel cAVS platforms by
default, but setting the flag _IGNORE_D3_PERSISTENT can help to disable
the feature for debug purpose, to rule out any possible regression
introduced by the change of not re-downloading firmware to the DSP at
resuming from suspended state.

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