drm/kms/radeon: pick digitial encoders smarter. (v3)
authorDave Airlie <airlied@redhat.com>
Thu, 28 Jan 2010 07:15:25 +0000 (17:15 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 1 Feb 2010 00:13:15 +0000 (10:13 +1000)
commitf28cf33945cc112f8ee835512b7440905dc29ad2
treedc824913b484b5f726f23692ff0e7e100f7a3e7a
parent43c33ed87d0f1b900a6a3014db556ecc7f4a989b
drm/kms/radeon: pick digitial encoders smarter. (v3)

booting a Lenovo W500 with LVDS + DP outputs showed up a TODO we had
on our list, to pick a correct digital encoder block. The LVTMA
encoder requires the second digital encoder, all others can use any
encoder at all.

This fixes the digital encoder selection logic to enable LVDS/DP combos
to work okay.

V2: fix silly addition of connector dig_block and cleanup the other
places in the code that pick the encoder.

V3: rename to dig_encoder and clean up further - also fix
the picking algorithm.

tested on Lenovo W500 + desktop 3650 cards.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_dp.c
drivers/gpu/drm/radeon/radeon_encoders.c
drivers/gpu/drm/radeon/radeon_mode.h