summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/ipc4-loader.c
diff options
context:
space:
mode:
authorRander Wang <rander.wang@intel.com>2023-12-15 16:31:01 +0800
committerMark Brown <broonie@kernel.org>2023-12-15 12:57:56 +0000
commit855a4772be9dc777cbcd580c8a07d9c54908219b (patch)
tree526ceab39c33f4b644cfd25943bb906acf4576d8 /sound/soc/sof/ipc4-loader.c
parent57cd29a82574b0e9d99ed5789801c96f765e8fcb (diff)
downloadlinux-stable-855a4772be9dc777cbcd580c8a07d9c54908219b.tar.gz
linux-stable-855a4772be9dc777cbcd580c8a07d9c54908219b.tar.bz2
linux-stable-855a4772be9dc777cbcd580c8a07d9c54908219b.zip
ASoC: SOF: IPC4: query fw_context_save feature from fw
Driver queries fw_context_save feature when fw is ready and can skip library reload with this feature since library is saved in persistent memory. The default value of fw_context_save is true unless fw reports false. Signed-off-by: Rander Wang <rander.wang@intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://msgid.link/r/20231215083102.3064200-3-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/ipc4-loader.c')
-rw-r--r--sound/soc/sof/ipc4-loader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sof/ipc4-loader.c b/sound/soc/sof/ipc4-loader.c
index eaa04762eb11..3539b0a66e1b 100644
--- a/sound/soc/sof/ipc4-loader.c
+++ b/sound/soc/sof/ipc4-loader.c
@@ -391,6 +391,9 @@ int sof_ipc4_query_fw_configuration(struct snd_sof_dev *sdev)
goto out;
}
break;
+ case SOF_IPC4_FW_CONTEXT_SAVE:
+ ipc4_data->fw_context_save = *tuple->value;
+ break;
default:
break;
}