drm/i915: Set crtc/clone mask in different output devices
authorMa Ling <ling.ma@intel.com>
Mon, 24 Aug 2009 05:50:24 +0000 (13:50 +0800)
committerEric Anholt <eric@anholt.net>
Tue, 25 Aug 2009 00:01:33 +0000 (17:01 -0700)
commitf8aed700c6ec46ddade6570004ce25332283b306
treebb1a9df27ee7cb4cc8e9b21d20e657c07f553665
parent27185ae1b795a4ba5e25b95fb5584e950545d774
drm/i915: Set crtc/clone mask in different output devices

Based on Bspec each encoder has different sharing pipe property,
i.e. Integrated or SDVO TV both will occupy one pipe exclusively,
and sdvo-non-tv and crt are allowed to share one. The patch moves
sharing judgment into differnet output functions, and sets the right
clone bit.

This fixes both HDMI outputs choosing the same pipe.

https://bugs.freedesktop.org/show_bug.cgi?id=22247

Signed-off-by: Ma Ling <ling.ma@intel.com>
Reviewed-by : Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_crt.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_dvo.c
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_lvds.c
drivers/gpu/drm/i915/intel_sdvo.c
drivers/gpu/drm/i915/intel_tv.c