From 43ebf0fb81855d0f676d74d0aa817831c5f70ced Mon Sep 17 00:00:00 2001 From: Tao Guo Date: Wed, 5 Dec 2018 06:39:36 +0000 Subject: [PATCH] codec_mm: show current tvp flag [1/2] PD#OTT-937 Problem: When kill mediacodec during playing drm, tvp memory not be freed Solution: Check tvp flag in kernel, free tvp memory if flag is not zero Verify: P212 Change-Id: I35cbb2808bf179710ec59bd5227995949946ee77 Signed-off-by: Tao Guo --- drivers/amlogic/media/common/codec_mm/codec_mm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/common/codec_mm/codec_mm.c b/drivers/amlogic/media/common/codec_mm/codec_mm.c index 23417d62560b..f613c06c5b2d 100644 --- a/drivers/amlogic/media/common/codec_mm/codec_mm.c +++ b/drivers/amlogic/media/common/codec_mm/codec_mm.c @@ -1760,7 +1760,10 @@ static ssize_t tvp_enable_help_show(struct class *class, { ssize_t size = 0; - size += sprintf(buf, "tvp enable help:\n"); + struct codec_mm_mgt_s *mgt = get_mem_mgt(); + + size += sprintf(buf, "tvp_flag=%d\n", mgt->tvp_enable); + size += sprintf(buf + size, "tvp enable help:\n"); size += sprintf(buf + size, "echo n > tvp_enable\n"); size += sprintf(buf + size, "0: disable tvp(tvp size to 0)\n"); size += sprintf(buf + size,