mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-03 11:43:03 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user