diff options
author | Ma Ling <ling.ma@intel.com> | 2009-08-24 01:50:24 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-08-24 20:01:33 -0400 |
commit | f8aed700c6ec46ddade6570004ce25332283b306 (patch) | |
tree | bb1a9df27ee7cb4cc8e9b21d20e657c07f553665 /drivers/gpu/drm/i915/intel_crt.c | |
parent | 27185ae1b795a4ba5e25b95fb5584e950545d774 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_crt.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_crt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c index 4cf8e2e88a40..d1294978a38c 100644 --- a/drivers/gpu/drm/i915/intel_crt.c +++ b/drivers/gpu/drm/i915/intel_crt.c | |||
@@ -537,6 +537,10 @@ void intel_crt_init(struct drm_device *dev) | |||
537 | } | 537 | } |
538 | 538 | ||
539 | intel_output->type = INTEL_OUTPUT_ANALOG; | 539 | intel_output->type = INTEL_OUTPUT_ANALOG; |
540 | intel_output->clone_mask = (1 << INTEL_SDVO_NON_TV_CLONE_BIT) | | ||
541 | (1 << INTEL_ANALOG_CLONE_BIT) | | ||
542 | (1 << INTEL_SDVO_LVDS_CLONE_BIT); | ||
543 | intel_output->crtc_mask = (1 << 0) | (1 << 1); | ||
540 | connector->interlace_allowed = 0; | 544 | connector->interlace_allowed = 0; |
541 | connector->doublescan_allowed = 0; | 545 | connector->doublescan_allowed = 0; |
542 | 546 | ||