From 8836faa702c132add7deb6cbb41ff5e42385f39d Mon Sep 17 00:00:00 2001 From: Chao Song Date: Tue, 14 Feb 2023 15:14:19 +0800 Subject: [PATCH 1/2] adsp_config: make the default value zero for init_config The init_config is used to indicate if base config extension is used (1) or not (0). Its default value is used if not specified in module config, the default value for init_config should be zero instead of one. Signed-off-by: Chao Song --- src/adsp_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adsp_config.c b/src/adsp_config.c index c02ea04..c2970ed 100644 --- a/src/adsp_config.c +++ b/src/adsp_config.c @@ -2237,7 +2237,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); From 9e72daccb415018b18f89b4035bb2057d98bb360 Mon Sep 17 00:00:00 2001 From: Chao Song Date: Tue, 14 Feb 2023 15:17:44 +0800 Subject: [PATCH 2/2] adsp_config: add dump for init_config This patch adds dump for init_config for debug. Signed-off-by: Chao Song --- src/adsp_config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/adsp_config.c b/src/adsp_config.c index c2970ed..e1f7e5a 100644 --- a/src/adsp_config.c +++ b/src/adsp_config.c @@ -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);