drm/rockchip: vop2: add some debug log for BCSH

Some platform VP can't support BCSH, add some log to remind this info
when userspace want to enable BCSH at unsupported VP.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I8247475edad30e14f08ef8c23e8314916c57a1f4
This commit is contained in:
Sandy Huang
2024-02-27 11:26:19 +08:00
committed by Tao Huang
parent f07a5c3cf0
commit bcc718e4cf

View File

@@ -10471,6 +10471,13 @@ static void vop2_tv_config_update(struct drm_crtc *crtc,
vcstate->tv_state->contrast != 50 ||
vcstate->tv_state->saturation != 50 || vcstate->tv_state->hue != 50)
vcstate->bcsh_en = 1;
if (!vp_data->regs->bcsh_en.mask) {
if (vcstate->bcsh_en)
DRM_WARN("VP%d unsupported BCSH\n", vp->id);
return;
}
/*
* The BCSH only need to config once except one of the following
* condition changed: