mirror of https://github.com/thesofproject/sof.git
pipeline/buffer: alloc them in the runtime shared zone
Make them shared between cores as they can be shared with other pipelines, trace and possibly even DMA. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
parent
29f0aeb913
commit
928dba0853
|
@ -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");
|
||||
|
|
|
@ -113,7 +113,7 @@ struct pipeline *pipeline_new(uint32_t pipeline_id, uint32_t priority, uint32_t
|
|||
pipeline_id, priority);
|
||||
|
||||
/* allocate new pipeline */
|
||||
p = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM, sizeof(*p));
|
||||
p = rzalloc(SOF_MEM_ZONE_RUNTIME_SHARED, 0, SOF_MEM_CAPS_RAM, sizeof(*p));
|
||||
if (!p) {
|
||||
pipe_cl_err("pipeline_new(): Out of Memory");
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue