Skip to content

Commit 5e79c76

Browse files
committed
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>
1 parent b2ee094 commit 5e79c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio/buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct comp_buffer *buffer_alloc(uint32_t size, uint32_t caps, uint32_t align)
3838
}
3939

4040
/* allocate new buffer */
41-
buffer = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM,
41+
buffer = rzalloc(SOF_MEM_ZONE_RUNTIME_SHARED, 0, SOF_MEM_CAPS_RAM,
4242
sizeof(*buffer));
4343
if (!buffer) {
4444
tr_err(&buffer_tr, "buffer_alloc(): could not alloc structure");

0 commit comments

Comments
 (0)