From cf6fc20370eabc90a8b359b3dc7752ce918a3e31 Mon Sep 17 00:00:00 2001 From: Xuhua Zhang Date: Fri, 18 Jan 2019 16:50:15 +0800 Subject: [PATCH] tvin: vdin: fix dolby vision memory free print error [1/1] PD#SWPL-3353 Problem: dolby vision memory free print error Solution: dolby vision memory has been free by vdin_cma_release, don't free again. Verify: test pass on R311 Change-Id: Id7108cf17260430c53dff707e843ed7833c8ee7c Signed-off-by: Xuhua Zhang --- drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c b/drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c index 9f35315f4454..6522883a82f5 100644 --- a/drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c +++ b/drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c @@ -3542,17 +3542,6 @@ void vdin_dolby_addr_alloc(struct vdin_dev_s *devp, unsigned int size) void vdin_dolby_addr_release(struct vdin_dev_s *devp, unsigned int size) { unsigned int alloc_size; - int highmem_flag, index; - - if (devp->cma_config_flag & 0x100) - highmem_flag = PageHighMem(phys_to_page(devp->vfmem_start[0])); - else - highmem_flag = PageHighMem(phys_to_page(devp->mem_start)); - - for (index = 0; index < size; index++) { - if (highmem_flag == 1) - codec_mm_unmap_phyaddr(devp->vfp->dv_buf_ori[index]); - } alloc_size = dolby_size_byte*size; if (devp->dv.dv_dma_vaddr)