author | apollo.ling <apollo.ling@amlogic.com> | 2020-07-24 11:45:00 (GMT) |
---|---|---|
committer | Apollo Ling <apollo.ling@amlogic.com> | 2020-08-03 05:47:33 (GMT) |
commit | 0f7b4bb4ec8d7083401fe6e97cf79db9c16efbfa (patch) | |
tree | f59f10f412a1b569fc1a1e9315b9b7309fe6325f | |
parent | ae26c44f67afb5bf64f50a84361e16f78cbac5ba (diff) | |
download | media_modules-0f7b4bb4ec8d7083401fe6e97cf79db9c16efbfa.zip media_modules-0f7b4bb4ec8d7083401fe6e97cf79db9c16efbfa.tar.gz media_modules-0f7b4bb4ec8d7083401fe6e97cf79db9c16efbfa.tar.bz2 |
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 <apollo.ling@amlogic.com>
-rw-r--r-- | drivers/frame_provider/decoder/utils/vdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |