summaryrefslogtreecommitdiff
path: root/linux-core/intel_display.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-06-02 11:44:35 +1000
committerDave Airlie <airlied@redhat.com>2008-06-02 11:44:35 +1000
commit46c78a2223802b9105a87b7125fd4872ab69c4ca (patch)
tree522ace3dc84b245e3eb3a0b2615bfe351441f0a9 /linux-core/intel_display.c
parent0dd000b578adec6ff101c957bce7dc9a32b76713 (diff)
drm/modesetting: add best encoder finding for modesetting
This asks the driver to suggest the best encoder for the connector during the pick crtcs stage. Need to also do this during mode setting stages
Diffstat (limited to 'linux-core/intel_display.c')
-rw-r--r--linux-core/intel_display.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/linux-core/intel_display.c b/linux-core/intel_display.c
index bbaa19d1..e23b3973 100644
--- a/linux-core/intel_display.c
+++ b/linux-core/intel_display.c
@@ -1489,3 +1489,14 @@ void intel_modeset_cleanup(struct drm_device *dev)
{
drm_mode_config_cleanup(dev);
}
+
+
+/* current intel driver doesn't take advantage of encoders
+ always give back the encoder for the connector
+*/
+struct drm_encoder *intel_best_encoder(struct drm_connector *connector)
+{
+ struct intel_output *intel_output = to_intel_output(connector);
+
+ return &intel_output->enc;
+}