mirror of https://github.com/thesofproject/sof.git
rimage: remove incorrect module order check
The original check for "i - 1 == type" is used to make sure that all modules in toml file are in order from 0 to max continuously. But the problem is that some modules are not supported now or some modules share the same module type of efx, so this check is incorrect. Signed-off-by: Rander Wang <rander.wang@intel.com>
This commit is contained in:
parent
6623073ca8
commit
f51ff46635
|
@ -2201,13 +2201,6 @@ static int parse_module(const toml_table_t *toml, struct parse_ctx *pctx,
|
|||
if (ret < 0)
|
||||
return err_key_parse("module_type", NULL);
|
||||
|
||||
if (strcmp((char *)mod_man->name, "BRNGUP") &&
|
||||
strcmp((char *)mod_man->name, "BASEFW")) {
|
||||
if (type != i - 1) {
|
||||
log_err(ret, "error: invalid type %d", type);
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
header->module_type = type;
|
||||
|
||||
ret = parse_scheduling(mod_entry, &ctx_entry,
|
||||
|
|
Loading…
Reference in New Issue