dv: OSD display highlights after stop playing [1/1]

PD#SWPL-19464

Problem:
After stop playing, dolby setting isn't update

Solution:
Trigger dv process once when stop playing, to
set dolby lut and regs.

At the same time, move DV fmt detection to the
front of HDR due to DV priority is higher than
HDR10.

Verify:
Verified on AC214

Change-Id: I4e6202f8b099164a9c6c3e49d7f63cab9cc6cbd9
Signed-off-by: yao liu <yao.liu@amlogic.com>
This commit is contained in:
yao liu
2020-01-10 16:10:23 +08:00
committed by Chris KIM
parent 8eef4d5c15
commit 2cbbd995fc

View File

@@ -2445,9 +2445,8 @@ static void dolby_vision_proc(
struct video_layer_s *layer,
struct vpp_frame_par_s *cur_frame_par)
{
#ifdef OLD_DV_FLOW
static struct vframe_s *cur_dv_vf;
#endif
static u32 cur_frame_size;
struct vframe_s *disp_vf;
u8 toggle_mode;
@@ -2519,13 +2518,12 @@ static void dolby_vision_proc(
frame_size = (h_size << 16) | v_size;
}
#ifdef OLD_DV_FLOW
/* trigger dv process once when stop playing */
/* because disp_vf is not sync with video off */
if (cur_dv_vf && !disp_vf)
dolby_vision_set_toggle_flag(1);
cur_dv_vf = disp_vf;
#endif
if (cur_frame_size != frame_size) {
cur_frame_size = frame_size;
dolby_vision_set_toggle_flag(1);