Skip to content
5 changes: 1 addition & 4 deletions src/audio/module_adapter/module/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,7 @@ void *mod_alloc_align(struct processing_module *mod, uint32_t size, uint32_t ali
}

/* Allocate memory for module */
if (alignment)
ptr = rballoc_align(SOF_MEM_FLAG_USER, size, alignment);
else
ptr = rballoc(SOF_MEM_FLAG_USER, size);
ptr = rmalloc_align(SOF_MEM_FLAG_USER, size, alignment);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep the rballoc() atm whilst VMH is updated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is now also mod_balloc() which uses rballoc as a backend. Going to rballoc() alone will break the CI if conbined with module conversions. Its only a oneliner the change the backend when we are ready for it.


if (!ptr) {
comp_err(mod->dev, "failed to allocate memory.");
Expand Down