vdin: fix hdmi input hlg video, vpp cannot get hlg flag

PD#167991: vdin: fix hdmi input hlg video, vpp cannot get hlg flag

Change-Id: I9071d6fd956ea70bcfde7cb781ec687fb0a81021
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
This commit is contained in:
MingLiang Dong
2018-06-29 14:55:50 +08:00
committed by Yixun Lan
parent 03d2d02b8c
commit eff1812ead
2 changed files with 11 additions and 0 deletions

View File

@@ -389,6 +389,7 @@ enum tvin_hdr_eotf_e {
EOTF_SDR,
EOTF_HDR,
EOTF_SMPTE_ST_2048,
EOTF_HLG,
EOTF_MAX,
};

View File

@@ -3939,6 +3939,16 @@ void vdin_set_drm_data(struct vdin_dev_s *devp,
(vf->signal_type & (~0xFF00)));
vf->signal_type = ((9 << 0) |
(vf->signal_type & (~0xFF)));
} else if (devp->prop.hdr_info.hdr_data.eotf ==
EOTF_HLG) {
vf->signal_type |= (1 << 29);
vf->signal_type |= (0 << 25);/*0:limit*/
vf->signal_type = ((9 << 16) |
(vf->signal_type & (~0xFF0000)));
vf->signal_type = ((14 << 8) |
(vf->signal_type & (~0xFF00)));
vf->signal_type = ((9 << 0) |
(vf->signal_type & (~0xFF)));
} else {
vf->signal_type &= ~(1 << 29);
vf->signal_type &= ~(1 << 25);