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

Commit 21e9d894 authored by Meghana Reddy Mula's avatar Meghana Reddy Mula
Browse files

drivers: ion: add dma type support



Add dma type support for in-kernel ion_alloc.
This is to support audio usecases.

Change-Id: Ifb367e3c12645faeba4b59d7600d579afbb08c97
Signed-off-by: default avatarMeghana Reddy Mula <mmula@codeaurora.org>
parent 220af9d0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1133,7 +1133,8 @@ struct dma_buf *ion_alloc(size_t len, unsigned int heap_id_mask,
		    heap->type == ION_HEAP_TYPE_CARVEOUT ||
		    heap->type == (enum ion_heap_type)ION_HEAP_TYPE_HYP_CMA ||
		    heap->type ==
			(enum ion_heap_type)ION_HEAP_TYPE_SYSTEM_SECURE) {
			(enum ion_heap_type)ION_HEAP_TYPE_SYSTEM_SECURE ||
		    heap->type == (enum ion_heap_type)ION_HEAP_TYPE_DMA) {
			type_valid = true;
		} else {
			pr_warn("%s: heap type not supported, type:%d\n",