From 726e655572e398391d8135d43f4402648c669e65 Mon Sep 17 00:00:00 2001 From: Libin Yang Date: Fri, 18 Nov 2022 16:00:39 +0800 Subject: [PATCH] selector: use cfg->init_data in selector_init() We are using cfg->init_data for the modules initialization and cfg->data is not ready when selector_init() is called. Using cfg->data in selector_init() will cause fw crash. Signed-off-by: Libin Yang --- src/audio/selector/selector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/selector/selector.c b/src/audio/selector/selector.c index 66d7d405d..3c77f85d9 100644 --- a/src/audio/selector/selector.c +++ b/src/audio/selector/selector.c @@ -603,7 +603,7 @@ static int selector_init(struct processing_module *mod) { struct module_data *md = &mod->priv; struct module_config *cfg = &md->cfg; - const struct ipc4_base_module_cfg *base_cfg = cfg->data; + const struct ipc4_base_module_cfg *base_cfg = cfg->init_data; struct comp_data *cd; int ret;