From 84fbdcbe336793d4b125bc8ab51bd5cd835427e1 Mon Sep 17 00:00:00 2001 From: Chuangcheng Peng Date: Tue, 20 Nov 2018 15:32:23 +0800 Subject: [PATCH] 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 --- .../media_modules/stream_input/parser/hw_demux/aml_dmx.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/amlogic/media_modules/stream_input/parser/hw_demux/aml_dmx.c b/drivers/amlogic/media_modules/stream_input/parser/hw_demux/aml_dmx.c index 21985eff39ff..c2f6aea918d5 100644 --- a/drivers/amlogic/media_modules/stream_input/parser/hw_demux/aml_dmx.c +++ b/drivers/amlogic/media_modules/stream_input/parser/hw_demux/aml_dmx.c @@ -43,7 +43,7 @@ #include #include #include - +#include #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),