Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168446
b: refs/heads/master
c: 2ffb842
h: refs/heads/master
v: v3
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Oct 12, 2009
1 parent aee0932 commit cdf95c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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: b5fc901002db0519093ec723fd98969bc03cd629
refs/heads/master: 2ffb842948ba64b03986f4064140a74c1780c44b
14 changes: 13 additions & 1 deletion trunk/drivers/gpu/drm/radeon/radeon_connectors.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,20 @@ static int radeon_lvds_mode_valid(struct drm_connector *connector,

static enum drm_connector_status radeon_lvds_detect(struct drm_connector *connector)
{
enum drm_connector_status ret = connector_status_connected;
enum drm_connector_status ret = connector_status_disconnected;
struct drm_encoder *encoder = radeon_best_single_encoder(connector);

if (encoder) {
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
struct radeon_native_mode *native_mode = &radeon_encoder->native_mode;

/* check if panel is valid */
if (native_mode->panel_xres >= 320 && native_mode->panel_yres >= 240)
ret = connector_status_connected;

}
/* check acpi lid status ??? */

radeon_connector_update_scratch_regs(connector, ret);
return ret;
}
Expand Down

0 comments on commit cdf95c7

Please sign in to comment.