Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253730
b: refs/heads/master
c: f89931f
h: refs/heads/master
v: v3
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Jun 16, 2011
1 parent a8fe50d commit 7bc4226
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6c669528a5367aaa5f4e712acef990b7148aee8
refs/heads/master: f89931f345f26c43b109191fbfcfa506781111c0
11 changes: 7 additions & 4 deletions trunk/drivers/gpu/drm/radeon/radeon_connectors.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,8 @@ static int radeon_dp_get_modes(struct drm_connector *connector)
struct drm_encoder *encoder = radeon_best_single_encoder(connector);
int ret;

if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) {
if ((connector->connector_type == DRM_MODE_CONNECTOR_eDP) ||
(connector->connector_type == DRM_MODE_CONNECTOR_LVDS)) {
struct drm_display_mode *mode;

if (!radeon_dig_connector->edp_on)
Expand Down Expand Up @@ -1208,7 +1209,8 @@ radeon_dp_detect(struct drm_connector *connector, bool force)
radeon_connector->edid = NULL;
}

if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) {
if ((connector->connector_type == DRM_MODE_CONNECTOR_eDP) ||
(connector->connector_type == DRM_MODE_CONNECTOR_LVDS)) {
if (encoder) {
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
struct drm_display_mode *native_mode = &radeon_encoder->native_mode;
Expand Down Expand Up @@ -1271,7 +1273,8 @@ static int radeon_dp_mode_valid(struct drm_connector *connector,

/* XXX check mode bandwidth */

if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) {
if ((connector->connector_type == DRM_MODE_CONNECTOR_eDP) ||
(connector->connector_type == DRM_MODE_CONNECTOR_LVDS)) {
struct drm_encoder *encoder = radeon_best_single_encoder(connector);

if ((mode->hdisplay < 320) || (mode->vdisplay < 240))
Expand All @@ -1281,7 +1284,7 @@ static int radeon_dp_mode_valid(struct drm_connector *connector,
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
struct drm_display_mode *native_mode = &radeon_encoder->native_mode;

/* AVIVO hardware supports downscaling modes larger than the panel
/* AVIVO hardware supports downscaling modes larger than the panel
* to the panel size, but I'm not sure this is desirable.
*/
if ((mode->hdisplay > native_mode->hdisplay) ||
Expand Down

0 comments on commit 7bc4226

Please sign in to comment.