Commit bb9c1b97 authored by Jani Nikula's avatar Jani Nikula

drm/i915/opregion: handle missing connector types for acpi display types

Most notably eDP, DSI, and TV. Add MISSING_CASE handling so we won't
miss this in the future.
Reviewed-and-tested-by: default avatarPeter Wu <peter@lekensteyn.nl>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/5773794027ea0d699052a343491b52343ba30504.1465810007.git.jani.nikula@intel.com
parent c37f7f57
...@@ -676,7 +676,7 @@ static void set_did(struct intel_opregion *opregion, int i, u32 val) ...@@ -676,7 +676,7 @@ static void set_did(struct intel_opregion *opregion, int i, u32 val)
static u32 acpi_display_type(struct drm_connector *connector) static u32 acpi_display_type(struct drm_connector *connector)
{ {
u32 display_type = ACPI_DISPLAY_TYPE_OTHER; u32 display_type;
switch (connector->connector_type) { switch (connector->connector_type) {
case DRM_MODE_CONNECTOR_VGA: case DRM_MODE_CONNECTOR_VGA:
...@@ -687,6 +687,7 @@ static u32 acpi_display_type(struct drm_connector *connector) ...@@ -687,6 +687,7 @@ static u32 acpi_display_type(struct drm_connector *connector)
case DRM_MODE_CONNECTOR_SVIDEO: case DRM_MODE_CONNECTOR_SVIDEO:
case DRM_MODE_CONNECTOR_Component: case DRM_MODE_CONNECTOR_Component:
case DRM_MODE_CONNECTOR_9PinDIN: case DRM_MODE_CONNECTOR_9PinDIN:
case DRM_MODE_CONNECTOR_TV:
display_type = ACPI_DISPLAY_TYPE_TV; display_type = ACPI_DISPLAY_TYPE_TV;
break; break;
case DRM_MODE_CONNECTOR_DVII: case DRM_MODE_CONNECTOR_DVII:
...@@ -697,8 +698,18 @@ static u32 acpi_display_type(struct drm_connector *connector) ...@@ -697,8 +698,18 @@ static u32 acpi_display_type(struct drm_connector *connector)
display_type = ACPI_DISPLAY_TYPE_EXTERNAL_DIGITAL; display_type = ACPI_DISPLAY_TYPE_EXTERNAL_DIGITAL;
break; break;
case DRM_MODE_CONNECTOR_LVDS: case DRM_MODE_CONNECTOR_LVDS:
case DRM_MODE_CONNECTOR_eDP:
case DRM_MODE_CONNECTOR_DSI:
display_type = ACPI_DISPLAY_TYPE_INTERNAL_DIGITAL; display_type = ACPI_DISPLAY_TYPE_INTERNAL_DIGITAL;
break; break;
case DRM_MODE_CONNECTOR_Unknown:
case DRM_MODE_CONNECTOR_VIRTUAL:
display_type = ACPI_DISPLAY_TYPE_OTHER;
break;
default:
MISSING_CASE(connector->connector_type);
display_type = ACPI_DISPLAY_TYPE_OTHER;
break;
} }
return display_type; return display_type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment