drm/rockchip: vop3: implement get property function for hdr, csc, acm

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ia89c70387a6e3093f327ff71c61886066935b7bc
This commit is contained in:
Zhang Yubing
2023-02-09 19:35:51 +08:00
committed by Tao Huang
parent cb9f78f78e
commit c6165d6923

View File

@@ -9842,14 +9842,20 @@ static int vop2_crtc_atomic_get_property(struct drm_crtc *crtc,
return 0;
}
if (property == vp->hdr_ext_data_prop)
if (property == vp->hdr_ext_data_prop) {
*val = vcstate->hdr_ext_data ? vcstate->hdr_ext_data->base.id : 0;
return 0;
}
if (property == vp->acm_lut_data_prop)
if (property == vp->acm_lut_data_prop) {
*val = vcstate->acm_lut_data ? vcstate->acm_lut_data->base.id : 0;
return 0;
}
if (property == vp->post_csc_data_prop)
if (property == vp->post_csc_data_prop) {
*val = vcstate->post_csc_data ? vcstate->post_csc_data->base.id : 0;
return 0;
}
DRM_ERROR("failed to get vop2 crtc property: %s\n", property->name);