Add support for DSI internally rotated displays (e.g. GPD)

Co-authored-by: Matthew Anderson <ruinairas1992@gmail.com>
This commit is contained in:
Joaquín Ignacio Aramendía 2023-03-10 13:02:51 -03:00 committed by GitHub
parent 6395e9f3ff
commit f5edba5853
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2371,8 +2371,9 @@ bool drm_set_degamma_exponent(struct drm_t *drm, float *vec, enum drm_screen_typ
drm_screen_type drm_get_connector_type(drmModeConnector *connector)
{
if (connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
connector->connector_type == DRM_MODE_CONNECTOR_LVDS)
return DRM_SCREEN_TYPE_INTERNAL;
connector->connector_type == DRM_MODE_CONNECTOR_LVDS ||
connector->connector_type == DRM_MODE_CONNECTOR_DSI)
return DRM_SCREEN_TYPE_INTERNAL;
return DRM_SCREEN_TYPE_EXTERNAL;
}