From 9cf8e6049ca0b7838c449e6b23454aaa3238fa20 Mon Sep 17 00:00:00 2001 From: Brian Zhu Date: Sat, 24 Aug 2019 22:05:11 +0800 Subject: [PATCH] dv: update el vf correctly [1/1] PD#SWPL-12849 Problem: Update meta and el function was called incorrectly. It will cause the BL and EL mismatch. Solution: Correct the calling sequence to get correct EL frame Verify: Verified by AC211 Change-Id: I6c9f0221a9facd361fcd18dcda55cc3967593c1c Signed-off-by: Brian Zhu --- drivers/amlogic/media/video_sink/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index ce2fda36971a..e95d8cb03c0a 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -6007,6 +6007,7 @@ struct vframe_s *dolby_vision_toggle_frame(struct vframe_s *vf) int height_bl, height_el; int ret; + ret = dolby_vision_update_metadata(vf); if (!is_dolby_vision_el_disable() || for_dolby_vision_certification()) cur_dispbuf2 = dolby_vision_vf_peek_el(vf); if (cur_dispbuf2) { @@ -6069,7 +6070,6 @@ struct vframe_s *dolby_vision_toggle_frame(struct vframe_s *vf) return NULL; }; - ret = dolby_vision_update_metadata(vf); if (ret == 0) { /* setting generated for this frame */ /* or DOVI in bypass mode */ -- 2.20.1