ext_manifest: Fix fw_ext_man_cavs_header version

The version fields in the fw_ext_man_cavs_header structure describe version
of the structure itself, not the image. The correct version number has been
set.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
This commit is contained in:
Adrian Warecki 2023-03-01 16:40:54 +01:00 committed by pjdobrowolski
parent a4ca53c9f1
commit 9ce1cc8988
2 changed files with 4 additions and 3 deletions

View File

@ -201,9 +201,8 @@ int ext_man_write_cavs_25(struct image *image)
mod_ext = &image->adsp->modules->mod_ext;
count = mod_ext->mod_conf_count;
header.version_major = mod_ext->ext_mod_config_array->header.version_major;
header.version_minor = mod_ext->ext_mod_config_array->header.version_minor;
header.version_major = EXTENDED_MANIFEST_VERSION_MAJOR;
header.version_minor = EXTENDED_MANIFEST_VERSION_MINOR;
header.num_module_entries = count;
header.id = EXTENDED_MANIFEST_MAGIC_HEADER_ID;
header.len = sizeof(const struct fw_ext_man_cavs_header);

View File

@ -24,6 +24,8 @@
/* ExtendedManifestHeader id $AE1 */
#define EXTENDED_MANIFEST_MAGIC_HEADER_ID 0x31454124
#define EXTENDED_MANIFEST_VERSION_MAJOR 0x0001
#define EXTENDED_MANIFEST_VERSION_MINOR 0x0000
#define FW_MAX_EXT_MODULE_NUM 32