mirror of https://github.com/thesofproject/sof.git
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:
parent
466a0508a1
commit
726e655572
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue