buffer: alloc main buffer struct in the runtime shared zone

Buffers can be shared between cores and it is crucial to have access
to not only proper buffer data but also description data of this buffer

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This commit is contained in:
Adrian Bonislawski 2021-08-30 13:25:56 +02:00 committed by Michal Wasko
parent 8fa5ff5793
commit 6c17eba7e2
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ struct comp_buffer *buffer_alloc(uint32_t size, uint32_t caps, uint32_t align)
}
/* allocate new buffer */
buffer = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM,
buffer = rzalloc(SOF_MEM_ZONE_RUNTIME_SHARED, 0, SOF_MEM_CAPS_RAM,
sizeof(*buffer));
if (!buffer) {
tr_err(&buffer_tr, "buffer_alloc(): could not alloc structure");