dvb:fixed subtitle memory invalid issue[1/1]

PD# SWPL-2268

Problem:
open subtitle, memory invalid and crash

Solution:
change phys_to_virt to codec_mm_phys_to_virt

Verify:
verify on P321 android p

Change-Id: I165bb708945c28cc20c2aaf21ce4b04517556a54
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
This commit is contained in:
Chuangcheng Peng
2018-11-20 15:32:23 +08:00
committed by Dongjin Kim
parent 711917ca2a
commit 84fbdcbe33

View File

@@ -43,7 +43,7 @@
#include <linux/dma-mapping.h>
#include <linux/pinctrl/pinmux.h>
#include <linux/vmalloc.h>
#include <linux/amlogic/media/codec_mm/codec_mm.h>
#include "../streambuf.h"
#include "c_stb_define.h"
#include "c_stb_regs_define.h"
@@ -1130,9 +1130,10 @@ static void process_sub(struct aml_dmx *dmx)
}
if (buffer1)
buffer1_virt = phys_to_virt(buffer1);
buffer1_virt = codec_mm_phys_to_virt(buffer1);
if (buffer2)
buffer2_virt = phys_to_virt(buffer2);
buffer2_virt = codec_mm_phys_to_virt(buffer2);
if (len1)
dma_sync_single_for_cpu(dmx_get_dev(dmx),