summaryrefslogtreecommitdiff
path: root/linux-core/drm_crtc.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/drm_crtc.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/drm_crtc.c')
-rw-r--r--linux-core/drm_crtc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c
index 74e526bd..73c7f2a3 100644
--- a/linux-core/drm_crtc.c
+++ b/linux-core/drm_crtc.c
@@ -2042,16 +2042,13 @@ out:
}
int drm_mode_connector_attach_encoder(struct drm_connector *connector,
- struct drm_encoder *encoder)
+ struct drm_encoder *encoder)
{
int i;
for (i = 0; i < DRM_CONNECTOR_MAX_ENCODER; i++) {
if (connector->encoder_ids[i] == 0) {
connector->encoder_ids[i] = encoder->id;
- /* pick the first added encoder as the current */
- if (i == 0)
- connector->encoder = encoder;
return 0;
}
}