From d3b7a081f3b744a7a24a84bbf74865445651d4b4 Mon Sep 17 00:00:00 2001 From: Brian Zhu Date: Tue, 31 Dec 2019 00:09:21 +0800 Subject: [PATCH] dv: fix first frame garbage with dual dv [1/1] PD#SWPL-19310 Problem: When playing dual layer dv streaming, first frame may display green. BL layer is out of sync with EL layer. Solution: Fix the case which will toggle one more EL vframe incorrecly. Verify: Verified by AC214 Change-Id: I13b4a05716e800b8d25564a82d1d34d7198bf467 Signed-off-by: Brian Zhu --- .../amlogic/media/enhancement/amdolby_vision/amdolby_vision.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c b/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c index 4087634dc1ee..378ced69e78e 100644 --- a/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c +++ b/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c @@ -7310,6 +7310,9 @@ int dolby_vision_process( video_turn_off ? "off" : "on", is_graphics_output_off() ? "off" : "on", vf, toggle_mode); + /* do not toggle a new el vf */ + if (toggle_mode == 1) + toggle_mode = 0; if (vf && !dolby_vision_parse_metadata( vf, toggle_mode, false, false)) { -- 2.20.1