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 <xuhua.zhang@amlogic.com>
This commit is contained in:
Xuhua Zhang
2019-01-18 16:50:15 +08:00
parent 4ee2bb36c9
commit 7c0701b80d

View File

@@ -3566,17 +3566,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)