diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_hdmi.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_hdmi.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 1d623b5e09d6..c6b8207724fa 100644 --- a/drivers/gpu/drm/i915/intel_hdmi.c +++ b/drivers/gpu/drm/i915/intel_hdmi.c | |||
@@ -1403,7 +1403,7 @@ bool intel_hdmi_compute_config(struct intel_encoder *encoder, | |||
1403 | } | 1403 | } |
1404 | 1404 | ||
1405 | /* Set user selected PAR to incoming mode's member */ | 1405 | /* Set user selected PAR to incoming mode's member */ |
1406 | adjusted_mode->picture_aspect_ratio = intel_hdmi->aspect_ratio; | 1406 | adjusted_mode->picture_aspect_ratio = conn_state->picture_aspect_ratio; |
1407 | 1407 | ||
1408 | pipe_config->lane_count = 4; | 1408 | pipe_config->lane_count = 4; |
1409 | 1409 | ||
@@ -1649,19 +1649,7 @@ intel_hdmi_set_property(struct drm_connector *connector, | |||
1649 | } | 1649 | } |
1650 | 1650 | ||
1651 | if (property == connector->dev->mode_config.aspect_ratio_property) { | 1651 | if (property == connector->dev->mode_config.aspect_ratio_property) { |
1652 | switch (val) { | 1652 | connector->state->picture_aspect_ratio = val; |
1653 | case DRM_MODE_PICTURE_ASPECT_NONE: | ||
1654 | intel_hdmi->aspect_ratio = HDMI_PICTURE_ASPECT_NONE; | ||
1655 | break; | ||
1656 | case DRM_MODE_PICTURE_ASPECT_4_3: | ||
1657 | intel_hdmi->aspect_ratio = HDMI_PICTURE_ASPECT_4_3; | ||
1658 | break; | ||
1659 | case DRM_MODE_PICTURE_ASPECT_16_9: | ||
1660 | intel_hdmi->aspect_ratio = HDMI_PICTURE_ASPECT_16_9; | ||
1661 | break; | ||
1662 | default: | ||
1663 | return -EINVAL; | ||
1664 | } | ||
1665 | goto done; | 1653 | goto done; |
1666 | } | 1654 | } |
1667 | 1655 | ||
@@ -1823,7 +1811,7 @@ intel_hdmi_add_properties(struct intel_hdmi *intel_hdmi, struct drm_connector *c | |||
1823 | intel_attach_broadcast_rgb_property(connector); | 1811 | intel_attach_broadcast_rgb_property(connector); |
1824 | intel_hdmi->color_range_auto = true; | 1812 | intel_hdmi->color_range_auto = true; |
1825 | intel_attach_aspect_ratio_property(connector); | 1813 | intel_attach_aspect_ratio_property(connector); |
1826 | intel_hdmi->aspect_ratio = HDMI_PICTURE_ASPECT_NONE; | 1814 | connector->state->picture_aspect_ratio = HDMI_PICTURE_ASPECT_NONE; |
1827 | } | 1815 | } |
1828 | 1816 | ||
1829 | /* | 1817 | /* |