]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: don't use 0 bpc for adjusting hdmi clock
authorDave Airlie <airlied@redhat.com>
Tue, 20 Dec 2011 11:44:30 +0000 (11:44 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Dec 2011 19:58:27 +0000 (19:58 +0000)
commitc3d6bf887406c2d12621f74c4b71372158ae55f4
tree45e6614b7842ba1d020780999a0e31d48b7e242d
parent9d6ba4fcc60adc3f499f90688cde5c774aa54ac6
drm/radeon/kms: don't use 0 bpc for adjusting hdmi clock

If the bpc is set from the connector is 0, we then use it later to adjust
in a special case the HDMI pixel clock, however if the bpc is 0, we end up
passing a 0 pixel clock into the code.

I'm not sure if this is the correct answer or if we should avoid the HDMI
clock adjustment for 0 values.

This fixes a divide by 0 on my Llano system with a HDMI monitor and hdmi
audio enabled.

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