Commit a31be8d9 authored by davidwang's avatar davidwang Committed by T.J. Mercier
Browse files

ANDROID: vendor_hooks: add vendor hook for dma_heap_buffer_alloc



Add android_vh_dmabuf_heap_flags_validation vh for
heap flags with vendor valid check.

The default value of the dma-buf heap flag is 0, implying that the
dma_heap_buffer_alloc() function will not allocate the heap buffer.
To allocate the heap buffer, we need a hook function that can validate
the custom heap flags and allocate the heap buffer if the flags are valid.

Bug: 241733930
Signed-off-by: default avatardavidwang <davidwang@realtek.com>
Change-Id: I5c1c111b8231a05f733bc56bda34bc408e708554
(cherry picked from commit fc9630b3)
Bug: 275191442
Signed-off-by: default avatarJames Tai <james.tai@realtek.com>
parent 067da03e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment