Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement for init_config parsing #134

Merged
merged 2 commits into from
Feb 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/adsp_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2124,6 +2124,7 @@ static void dump_module(struct fw_image_manifest_module *man_cavs)
for (i = 0; i < man_cavs->mod_man_count; i++) {
DUMP_PRINTABLE_BYTES("module name", man_cavs->mod_man[i].name);
DUMP_KEY("load type", "%d", man_cavs->mod_man[i].type.load_type);
DUMP_KEY("init config", "%d", man_cavs->mod_man[i].type.init_config);
DUMP_KEY("domain ll", "%d", man_cavs->mod_man[i].type.domain_ll);
DUMP_KEY("domain dp", "%d", man_cavs->mod_man[i].type.domain_dp);
DUMP_KEY("config count", "%d", man_cavs->mod_man[i].cfg_count);
Expand Down Expand Up @@ -2237,7 +2238,7 @@ static int parse_module(const toml_table_t *toml, struct parse_ctx *pctx,
return err_key_parse("load_type", NULL);

mod_man->type.init_config = parse_uint32_hex_key(mod_entry, &ctx_entry,
"init_config", 1, &ret);
"init_config", 0, &ret);
if (ret < 0)
return err_key_parse("init_config", NULL);

Expand Down