From 69b2b8391534ca4f44e6bda0c46ffd1d1be7b1c1 Mon Sep 17 00:00:00 2001 From: Kunlei Zhang Date: Fri, 26 Jun 2020 11:18:59 +0800 Subject: [PATCH] uapi: add cma memory allocation feature flag add cma memory allocation feature flag. Change-Id: If197e8b837f8153fa97f4736216ba9d84a26c978 Signed-off-by: Kunlei Zhang --- include/uapi/audio/linux/msm_audio_calibration.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/uapi/audio/linux/msm_audio_calibration.h b/include/uapi/audio/linux/msm_audio_calibration.h index 686603f5a5..d5093c8d5c 100644 --- a/include/uapi/audio/linux/msm_audio_calibration.h +++ b/include/uapi/audio/linux/msm_audio_calibration.h @@ -126,6 +126,7 @@ enum { #define TOPOLOGY_SPECIFIC_CHANNEL_INFO #define MSM_SPKR_PROT_SPV3 #define MSM_SPKR_PROT_SPV4 +#define MSM_CMA_MEM_ALLOC enum { VERSION_0_0, @@ -156,7 +157,10 @@ struct audio_cal_data { __s32 cal_size; /* If mem_handle if shared memory is used*/ __s32 mem_handle; - /* size of virtual memory if shared memory not used */ +#ifdef MSM_CMA_MEM_ALLOC + /* cma allocation flag if cma heap memory is used */ + __u32 cma_mem; +#endif };