From 18294177e0f6627918ea1fab4a90dd210c5fbe79 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Fri, 8 Mar 2024 15:33:12 +0100 Subject: [PATCH] modules: restore behaviour for non-LLEXT modules An earlier commit inadvertantly potentially changed behaviour of non-llext modules by imposing too strict a condition for calling modules_new(). Restore the original behaviour for those modules. Fixes: 6b9b4c24d28f ("modules: don't re-load on each restart") Signed-off-by: Guennadi Liakhovetski --- src/audio/module_adapter/module/modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/module_adapter/module/modules.c b/src/audio/module_adapter/module/modules.c index 04b8a27e0c50..de95fb95b6de 100644 --- a/src/audio/module_adapter/module/modules.c +++ b/src/audio/module_adapter/module/modules.c @@ -136,7 +136,7 @@ static int modules_init(struct processing_module *mod) } comp_info(dev, "modules_init() start"); - if (!md->module_adapter && md->ops == &interface) { + if (!md->llext || md->ops == &interface) { /* First load */ ret = modules_new(mod, buildinfo, module_entry_point); if (ret < 0)