Skip to content

Commit

Permalink
modules: restore behaviour for non-LLEXT modules
Browse files Browse the repository at this point in the history
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: 6b9b4c2 ("modules: don't re-load on each restart")
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
  • Loading branch information
lyakh committed Mar 8, 2024
1 parent 980b1c6 commit 1829417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/module_adapter/module/modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1829417

Please sign in to comment.