drm/radeon/kms: deal with connectors sourced to the same encoder
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 17 Nov 2009 20:44:01 +0000 (15:44 -0500)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Dec 2009 01:36:44 +0000 (11:36 +1000)
commit71407c46fecb82c542b6209f021d38a2901969a3
tree0778f39726588869f0f3efc021970b175565478e
parent3e5f8ff3a9f4e7a71c5371b2122b32faf31c563a
drm/radeon/kms: deal with connectors sourced to the same encoder

Some systems have multiple connectors connected to the same encoder;
e.g., DVI and HDMI connected to the same encoder with the same ddc
line. Since we expose connectors as xrandr outputs, randr treats them
separately which results in it trying to source the same encoder to
different crtcs. If we have an HDMI and DVI-D port on the same encoder,
pick the one to be considered connected based on the edid (HDMI if edid
indicates HDMI, DVI otherwise).

Should fix fdo bug 25150

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_connectors.c