mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
ASoC: SOF: Add placeholder for platform IPC type and path overrides
Add a struct sof_loadable_file_profile which can be filled by platforms (sof-acpi-dev.c, sof-of-dev.c and sof-acpi-dev.c) to be able to use common, generic code to handle path customization. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20231129125327.23708-4-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3bc3477915
commit
1162d267ea
1 changed files with 15 additions and 0 deletions
|
@ -57,6 +57,18 @@ enum sof_ipc_type {
|
||||||
SOF_IPC_TYPE_COUNT
|
SOF_IPC_TYPE_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct sof_loadable_file_profile {
|
||||||
|
enum sof_ipc_type ipc_type;
|
||||||
|
|
||||||
|
const char *fw_path;
|
||||||
|
const char *fw_path_postfix;
|
||||||
|
const char *fw_name;
|
||||||
|
const char *fw_lib_path;
|
||||||
|
const char *fw_lib_path_postfix;
|
||||||
|
const char *tplg_path;
|
||||||
|
const char *tplg_name;
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SOF Platform data.
|
* SOF Platform data.
|
||||||
*/
|
*/
|
||||||
|
@ -86,6 +98,9 @@ struct snd_sof_pdata {
|
||||||
/* descriptor */
|
/* descriptor */
|
||||||
const struct sof_dev_desc *desc;
|
const struct sof_dev_desc *desc;
|
||||||
|
|
||||||
|
/* platform's preferred IPC type and path overrides */
|
||||||
|
struct sof_loadable_file_profile ipc_file_profile_base;
|
||||||
|
|
||||||
/* firmware and topology filenames */
|
/* firmware and topology filenames */
|
||||||
const char *fw_filename_prefix;
|
const char *fw_filename_prefix;
|
||||||
const char *fw_filename;
|
const char *fw_filename;
|
||||||
|
|
Loading…
Reference in a new issue