Revert "drm/bridge: analogix_dp: Fix sync polarity configuration in msa packet"

This reverts commit 3cf189f222.

VOP only supports the negative polarity of vsync/hsync on rk3588.

Change-Id: I67ea19f04213739149e245fa1aa5a556e92b5698
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This commit is contained in:
Wyon Bi
2022-10-20 08:32:48 +00:00
committed by Tao Huang
parent f7d4e932d8
commit 6b734afe88

View File

@@ -1785,8 +1785,13 @@ static void analogix_dp_bridge_mode_set(struct drm_bridge *bridge,
/* Input video interlaces & hsync pol & vsync pol */
video->interlaced = !!(mode->flags & DRM_MODE_FLAG_INTERLACE);
video->v_sync_polarity = !!(mode->flags & DRM_MODE_FLAG_NVSYNC);
video->h_sync_polarity = !!(mode->flags & DRM_MODE_FLAG_NHSYNC);
if (dp->plat_data->dev_type == RK3588_EDP) {
video->v_sync_polarity = true;
video->h_sync_polarity = true;
} else {
video->v_sync_polarity = !!(mode->flags & DRM_MODE_FLAG_NVSYNC);
video->h_sync_polarity = !!(mode->flags & DRM_MODE_FLAG_NHSYNC);
}
/* Input video dynamic_range & colorimetry */
vic = drm_match_cea_mode(mode);