Skip to content

Commit 82ea778

Browse files
committed
audio: module_adapter: fix non-Zephyr builds
Only use Zephyr heap definitions when building with Zephyr. Fixes: 9ff0a7a ("alloc: sof_heap: Add missing support for shared buffers in sof_heap_alloc") Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent fce9bcd commit 82ea778

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/audio/module_adapter/module_adapter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ static struct k_heap *module_adapter_dp_heap_new(const struct comp_ipc_config *c
7070
void *mod_heap_buf = mod_heap_mem + heap_prefix_size;
7171

7272
k_heap_init(mod_heap, mod_heap_buf, heap_size - heap_prefix_size);
73+
#ifdef __ZEPHYR__
7374
mod_heap->heap.init_mem = mod_heap_buf;
7475
mod_heap->heap.init_bytes = heap_size - heap_prefix_size;
76+
#endif
7577

7678
return mod_heap;
7779
}

0 commit comments

Comments
 (0)