Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345128
b: refs/heads/master
c: 0bdee30
h: refs/heads/master
v: v3
  • Loading branch information
Paulo Zanoni authored and Daniel Vetter committed Oct 18, 2012
1 parent e4d0a16 commit ef3a87e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: 750eb99e0ec12f9a13446284d493d35a60866624
refs/heads/master: 0bdee30ed351d437cc24bb0ec51dfd02f60273fb
12 changes: 9 additions & 3 deletions trunk/drivers/gpu/drm/i915/intel_ddi.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,20 @@ static const u32 hsw_ddi_translations_fdi[] = {

static enum port intel_ddi_get_encoder_port(struct intel_encoder *intel_encoder)
{
struct drm_encoder *encoder = &intel_encoder->base;
int type = intel_encoder->type;

if (type == INTEL_OUTPUT_HDMI) {
struct intel_hdmi *intel_hdmi =
enc_to_intel_hdmi(&intel_encoder->base);
if (type == INTEL_OUTPUT_DISPLAYPORT || type == INTEL_OUTPUT_EDP) {
struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
return intel_dp->port;

} else if (type == INTEL_OUTPUT_HDMI) {
struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder);
return intel_hdmi->ddi_port;

} else if (type == INTEL_OUTPUT_ANALOG) {
return PORT_E;

} else {
DRM_ERROR("Invalid DDI encoder type %d\n", type);
BUG();
Expand Down

0 comments on commit ef3a87e

Please sign in to comment.