drm/radeon: Limit hdmi deep color bit depth to 12 bpc.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Mon, 5 May 2014 21:03:18 +0000 (23:03 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Jun 2014 22:37:33 +0000 (18:37 -0400)
commit89b92339c1362ee910b0c73c2db32af11246c250
tree9e22da5a0c40ba4439273d51fe04debde926b942
parent7b555e068de613b52b068adf3c74f0c774c28365
drm/radeon: Limit hdmi deep color bit depth to 12 bpc.

DCE-4/5/6 can't support more than 12 bpc deep color over hdmi,
so clamp to 12 bpc when a hdmi deep color capable display is
connected. This even makes sense on DCE-8+, which could do up
to 16 bpc, as driving with more than 12 bpc would only waste
video bandwidth as long as we don't support framebuffers with
more than 12 bpc depth.

On pre-DCE4 we clamp hdmi bit depth to 8 bpc, as those asics
don't support hdmi deep color.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_connectors.c