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 <libin.yang@intel.com>
This commit is contained in:
Libin Yang 2022-11-18 16:00:39 +08:00 committed by Liam Girdwood
parent 466a0508a1
commit 726e655572
1 changed files with 1 additions and 1 deletions

View File

@ -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;