Commit a5ab431e authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

ASoC: SOF: ipc4: Define platform dependent library loading callback

Platforms where external libraries can be supported should set the
load_library callback to implement this functionality.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: default avatarChao Song <chao.song@intel.com>
Reviewed-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20221020121238.18339-14-peter.ujfalusi@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent cd6f2a2e
...@@ -66,6 +66,8 @@ struct sof_ipc4_fw_library { ...@@ -66,6 +66,8 @@ struct sof_ipc4_fw_library {
* @mtrace_log_bytes: log bytes as reported by the firmware via fw_config reply * @mtrace_log_bytes: log bytes as reported by the firmware via fw_config reply
* @max_libs_count: Maximum number of libraries support by the FW including the * @max_libs_count: Maximum number of libraries support by the FW including the
* base firmware * base firmware
*
* @load_library: Callback function for platform dependent library loading
*/ */
struct sof_ipc4_fw_data { struct sof_ipc4_fw_data {
u32 manifest_fw_hdr_offset; u32 manifest_fw_hdr_offset;
...@@ -74,6 +76,9 @@ struct sof_ipc4_fw_data { ...@@ -74,6 +76,9 @@ struct sof_ipc4_fw_data {
enum sof_ipc4_mtrace_type mtrace_type; enum sof_ipc4_mtrace_type mtrace_type;
u32 mtrace_log_bytes; u32 mtrace_log_bytes;
u32 max_libs_count; u32 max_libs_count;
int (*load_library)(struct snd_sof_dev *sdev,
struct sof_ipc4_fw_library *fw_lib, bool reload);
}; };
extern const struct sof_ipc_fw_loader_ops ipc4_loader_ops; extern const struct sof_ipc_fw_loader_ops ipc4_loader_ops;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment