Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e594e44 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres Committed by Gerrit - the friendly Code Review server
Browse files

staging: android: ion: Add support for the audio ML heap



Add support for creating the audio ML CMA heap. This heap will
be used to provide machine learning (ML) information to audio
hardware, which can only use physically contiguous memory.

Change-Id: I7b4677c7a178d3fc8592a43cac08799e8124fefe
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent c7c426ff
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -87,6 +87,10 @@ static struct ion_heap_desc ion_heap_meta[] = {
		.id	= ION_DISPLAY_HEAP_ID,
		.name	= ION_DISPLAY_HEAP_NAME,
	},
	{
		.id	= ION_AUDIO_ML_HEAP_ID,
		.name	= ION_AUDIO_ML_HEAP_NAME,
	},
};

#define MAKE_HEAP_TYPE_MAPPING(h) { .name = #h, \
+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@
#define ION_AUDIO_HEAP_NAME    "audio"
#define ION_TUI_CARVEOUT_HEAP_NAME "tui_carveout"
#define ION_DISPLAY_HEAP_NAME "display"
#define ION_AUDIO_ML_HEAP_NAME "audio_ml"

/**
 * Debug feature. Make ION allocations DMA
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
#define ION_CAMERA_HEAP_ID		ION_BIT(2)
#define ION_DISPLAY_HEAP_ID		ION_BIT(3)
#define ION_ADSP_HEAP_ID		ION_BIT(4)
#define ION_AUDIO_ML_HEAP_ID		ION_BIT(5)
#define ION_USER_CONTIG_HEAP_ID		ION_BIT(6)
#define ION_QSECOM_HEAP_ID		ION_BIT(7)
#define ION_AUDIO_HEAP_ID		ION_BIT(8)