Skip to content

Commit a37cdd6

Browse files
committed
ipc: disable memory zones for IPC4
Memory zones are only used with IPC3, mark them as such. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 637aa48 commit a37cdd6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ipc/ipc-helper.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ __cold struct comp_buffer *buffer_new(struct mod_alloc_ctx *alloc,
6868
return NULL;
6969
}
7070

71+
#if CONFIG_IPC_MAJOR_3
7172
/* memory zones and caps are deprecated - convert to flags */
7273
if (desc->caps & SOF_MEM_CAPS_DMA)
7374
flags |= SOF_MEM_FLAG_DMA;
@@ -78,6 +79,7 @@ __cold struct comp_buffer *buffer_new(struct mod_alloc_ctx *alloc,
7879
if (desc->caps)
7980
tr_warn(&buffer_tr, "Deprecated buffer caps 0x%x used, convert to flags 0x%x",
8081
desc->caps, flags);
82+
#endif
8183

8284
/* allocate buffer */
8385
buffer = buffer_alloc(alloc, desc->size, flags, PLATFORM_DCACHE_ALIGN,

0 commit comments

Comments
 (0)