]> git.baikalelectronics.ru Git - kernel.git/commit
drm: disable encoders before re-routing them
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 24 Feb 2009 00:09:34 +0000 (16:09 -0800)
committerDave Airlie <airlied@linux.ie>
Wed, 25 Feb 2009 04:42:23 +0000 (14:42 +1000)
commit6b78d20fad7e72e58f3050710e5717512fc1252d
tree704b5ffbb921f6798e5c29df369c64561d4d425c
parent67e2a8d2a02ad2362fc39283fd22a861d7421196
drm: disable encoders before re-routing them

In some cases we may receive a mode config that has a different
CRTC<->encoder map that the current configuration.  In that case, we
need to disable any re-routed encoders before setting the mode,
otherwise they may not pick up the new CRTC (if the output types are
incompatible for example).

Tested-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/drm_crtc_helper.c
include/drm/drm_crtc_helper.h