]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/radeon/kms: fix shared ddc harder
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 20 Jul 2010 15:27:54 +0000 (11:27 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:38 +0000 (10:29 -0700)
commitf48b1a82b488358a1a12567bda6e55112a15f3f8
tree740622ec2bf254a23c807927d3b720437fd15fe7
parent4552415cf7db742e0063b8f4826a1352b62fe1fa
drm/radeon/kms: fix shared ddc harder

commit 42f14c4b454946650cf0bf66e0b631d02e328f61 upstream.

This fixes a regression caused by b2ea4aa67bfd084834edd070e0a4a47857d6db59
due to the way shared ddc with multiple digital connectors was handled.

You generally have two cases where DDC lines are shared:
- HDMI + VGA
- HDMI + DVI-D

HDMI + VGA is easy to deal with because you can check the EDID for the
to see if the attached monitor is digital.  A shared DDC line with two
digital connectors is more complex.  You can't use the hdmi bits in the
EDID since they may not be there with DVI<->HDMI adapters.  In this case
all we can do is check the HPD pins to see which is connected as we have
no way of knowing using the EDID.

Reported-by: trapdoor6@gmail.com
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/radeon_connectors.c