From: apollo.ling Date: Fri, 24 Jul 2020 11:45:00 +0000 (+0800) Subject: vdec: fix parser permision rights confusion [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f7b4bb4ec8d7083401fe6e97cf79db9c16efbfa;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git vdec: fix parser permision rights confusion [1/1] PD#SWPL-29762 Problem: When secure and non secure mode at the same time,persion rights conflicted Solution: correct the parser permision rights confusion. Verify: u215 Change-Id: I47987e793aa0af05dd07ec3a13de9f38c7444ac5 Signed-off-by: apollo.ling --- diff --git a/drivers/frame_provider/decoder/utils/vdec.c b/drivers/frame_provider/decoder/utils/vdec.c index ff91179..5370927 100644 --- a/drivers/frame_provider/decoder/utils/vdec.c +++ b/drivers/frame_provider/decoder/utils/vdec.c @@ -3114,9 +3114,9 @@ void vdec_prepare_run(struct vdec_s *vdec, unsigned long mask) if (!vdec_core_with_input(mask)) return; - if (secure && vdec_stream_based(vdec) && force_nosecure_even_drm) + if (vdec_stream_based(vdec) && !vdec_secure(vdec)) { - secure = 0; + tee_config_device_secure(DMC_DEV_ID_PARSER, 0); } if (input->target == VDEC_INPUT_TARGET_VLD) tee_config_device_secure(DMC_DEV_ID_VDEC, secure);