mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user