Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155258
b: refs/heads/master
c: 8e4d36b
h: refs/heads/master
v: v3
  • Loading branch information
ling.ma@intel.com authored and Eric Anholt committed Jul 7, 2009
1 parent 1a58c0a commit e22f358
Show file tree
Hide file tree
Showing 2 changed files with 28 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: 22bd50c5b9aaf46476cade52c4ae9afa21c44e15
refs/heads/master: 8e4d36b993898b344f9176147f1dfeca583f81fd
28 changes: 27 additions & 1 deletion trunk/drivers/gpu/drm/i915/intel_crt.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,34 @@ static void intel_crt_destroy(struct drm_connector *connector)

static int intel_crt_get_modes(struct drm_connector *connector)
{
int ret;
struct intel_output *intel_output = to_intel_output(connector);
return intel_ddc_get_modes(intel_output);
struct intel_i2c_chan *ddcbus;
struct drm_device *dev = connector->dev;


ret = intel_ddc_get_modes(intel_output);
if (ret || !IS_G4X(dev))
goto end;

ddcbus = intel_output->ddc_bus;
/* Try to probe digital port for output in DVI-I -> VGA mode. */
intel_output->ddc_bus =
intel_i2c_create(connector->dev, GPIOD, "CRTDDC_D");

if (!intel_output->ddc_bus) {
intel_output->ddc_bus = ddcbus;
dev_printk(KERN_ERR, &connector->dev->pdev->dev,
"DDC bus registration failed for CRTDDC_D.\n");
goto end;
}
/* Try to get modes by GPIOD port */
ret = intel_ddc_get_modes(intel_output);
intel_i2c_destroy(ddcbus);

end:
return ret;

}

static int intel_crt_set_property(struct drm_connector *connector,
Expand Down

0 comments on commit e22f358

Please sign in to comment.