Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345129
b: refs/heads/master
c: fe43d3f
h: refs/heads/master
i:
  345127: e4d0a16
v: v3
  • Loading branch information
Paulo Zanoni authored and Daniel Vetter committed Oct 18, 2012
1 parent ef3a87e commit 66f9507
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 0bdee30ed351d437cc24bb0ec51dfd02f60273fb
refs/heads/master: fe43d3f5a38e5b7db27f79cb8447cb25a884dfc7
8 changes: 4 additions & 4 deletions trunk/drivers/gpu/drm/i915/intel_ddi.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,11 +987,11 @@ bool intel_ddi_get_hw_state(struct intel_encoder *encoder,
{
struct drm_device *dev = encoder->base.dev;
struct drm_i915_private *dev_priv = dev->dev_private;
struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base);
enum port port = intel_ddi_get_encoder_port(encoder);
u32 tmp;
int i;

tmp = I915_READ(DDI_BUF_CTL(intel_hdmi->ddi_port));
tmp = I915_READ(DDI_BUF_CTL(port));

if (!(tmp & DDI_BUF_CTL_ENABLE))
return false;
Expand All @@ -1000,13 +1000,13 @@ bool intel_ddi_get_hw_state(struct intel_encoder *encoder,
tmp = I915_READ(DDI_FUNC_CTL(i));

if ((tmp & PIPE_DDI_PORT_MASK)
== PIPE_DDI_SELECT_PORT(intel_hdmi->ddi_port)) {
== PIPE_DDI_SELECT_PORT(port)) {
*pipe = i;
return true;
}
}

DRM_DEBUG_KMS("No pipe for ddi port %i found\n", intel_hdmi->ddi_port);
DRM_DEBUG_KMS("No pipe for ddi port %i found\n", port);

return true;
}
Expand Down

0 comments on commit 66f9507

Please sign in to comment.