From 4f4ebc9228e227181733dc45cb85df7945bf4e6c Mon Sep 17 00:00:00 2001 From: King Tam Date: Tue, 28 May 2019 11:49:56 -0400 Subject: [PATCH] dsp: ion_vm: adapt to new interfaces Add new interfaces stub functions for Dolby security change, since ion_vm share the same header file with ion. Change-Id: Iaac5931a9c97eafe1a8cc5980ac70b9a62288faa Signed-off-by: King Tam --- dsp/msm_audio_ion_vm.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/dsp/msm_audio_ion_vm.c b/dsp/msm_audio_ion_vm.c index fc6039a6bee5..f9635b3328d1 100644 --- a/dsp/msm_audio_ion_vm.c +++ b/dsp/msm_audio_ion_vm.c @@ -647,6 +647,31 @@ err: } EXPORT_SYMBOL(msm_audio_ion_alloc); +int msm_audio_ion_phys_free(void *handle, + dma_addr_t *paddr, + size_t *pa_len, + u8 assign_type, + int id, + int key) +{ + handle = NULL; + return 0; +} +EXPORT_SYMBOL(msm_audio_ion_phys_free); + +int msm_audio_ion_phys_assign(void **handle, int fd, + dma_addr_t *paddr, size_t *pa_len, u8 assign_type, int id) +{ + *handle = NULL; + return 0; +} +EXPORT_SYMBOL(msm_audio_ion_phys_assign); + +bool msm_audio_is_hypervisor_supported(void) +{ + return false; +} +EXPORT_SYMBOL(msm_audio_is_hypervisor_supported); /** * msm_audio_ion_import- * Import ION buffer with given file descriptor