mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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:
committed by
Yixun Lan
parent
03d2d02b8c
commit
eff1812ead
@@ -389,6 +389,7 @@ enum tvin_hdr_eotf_e {
|
||||
EOTF_SDR,
|
||||
EOTF_HDR,
|
||||
EOTF_SMPTE_ST_2048,
|
||||
EOTF_HLG,
|
||||
EOTF_MAX,
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user