]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: reset intel_encoder->type when DP or HDMI is detected
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 26 Oct 2012 21:05:49 +0000 (19:05 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 11 Nov 2012 22:51:07 +0000 (23:51 +0100)
commit3919c71527928f9f8e8c896d547d04906d975356
tree0f5b5805c072a6449e42bc7f704aa9204ac77c68
parent7697ed6de2381976ee174146e6250d9ee59fc7ce
drm/i915: reset intel_encoder->type when DP or HDMI is detected

When intel_hdmi_detect detects a monitor, set intel_encoder->type with
INTEL_OUTPUT_HDMI. Same for DP.

This should not break the current code because these variables never
change. This will be used after we create the DDI encoder because it
will have both DP and HDMI connectors.

We won't support eDP+HDMI on the same port, so if an encoder is eDP we
should expect it to always remain eDP and never change.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_hdmi.c