Skip to content

Commit ef0a310

Browse files
committed
audio: module_adapter: alloc from LL user heap if LL run in user
When SOF is built with LL pipes in user-space, module adapter should allocate all resources from the LL user heap. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent e3afffe commit ef0a310

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/audio/module_adapter/module_adapter.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ static struct processing_module *module_adapter_mem_alloc(const struct comp_driv
111111
}
112112
mod_heap = &mod_heap_user->heap;
113113
} else {
114+
#ifdef CONFIG_SOF_USERSPACE_LL
115+
mod_heap = zephyr_ll_user_heap();
116+
comp_cl_dbg(drv, "using ll user heap for module");
117+
#else
114118
mod_heap = drv->user_heap;
119+
#endif
115120
mod_heap_user = NULL;
116121
heap_size = 0;
117122
}

0 commit comments

Comments
 (0)