Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329422
b: refs/heads/master
c: 9a8ee98
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter committed Sep 6, 2012
1 parent a6cf7a6 commit 50cd696
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 85234cdc28f622dc94d8bb0089635113e2aa5609
refs/heads/master: 9a8ee983e0b77a8b07d3f20a7627202e5f9a7ba5
17 changes: 17 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_tv.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,21 @@ static struct intel_tv *intel_attached_tv(struct drm_connector *connector)
base);
}

static bool
intel_tv_get_hw_state(struct intel_encoder *encoder, enum pipe *pipe)
{
struct drm_device *dev = encoder->base.dev;
struct drm_i915_private *dev_priv = dev->dev_private;
u32 tmp = I915_READ(TV_CTL);

if (!(tmp & TV_ENC_ENABLE))
return false;

*pipe = PORT_TO_PIPE(tmp);

return true;
}

static void
intel_enable_tv(struct intel_encoder *encoder)
{
Expand Down Expand Up @@ -1616,6 +1631,8 @@ intel_tv_init(struct drm_device *dev)

intel_encoder->enable = intel_enable_tv;
intel_encoder->disable = intel_disable_tv;
intel_encoder->get_hw_state = intel_tv_get_hw_state;
intel_connector->get_hw_state = intel_connector_get_hw_state;

intel_connector_attach_encoder(intel_connector, intel_encoder);
intel_encoder->type = INTEL_OUTPUT_TVOUT;
Expand Down

0 comments on commit 50cd696

Please sign in to comment.