[Intel-gfx] [PATCH 4/6] drm/i915: check for audio and infoframe changes across mode sets

Jesse Barnes jbarnes at virtuousgeek.org
Thu Oct 30 19:54:02 CET 2014


If these change (e.g. after a modeset following a fastboot), we need to
do a full mode set.

Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_display.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 0f1952e..2199a9a 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -11482,6 +11482,16 @@ static int intel_crtc_set_config(struct drm_mode_set *set)
 	if (ret)
 		goto fail;
 
+	if (to_intel_crtc(set->crtc)->new_config->has_audio !=
+	    to_intel_crtc(set->crtc)->config.has_audio)
+		config->mode_changed = true;
+
+	/* Force mode sets for any infoframe stuff */
+	if (to_intel_crtc(set->crtc)->new_config->has_infoframe ||
+	    to_intel_crtc(set->crtc)->config.has_infoframe)
+		config->mode_changed = true;
+
+
 	if (config->mode_changed) {
 		ret = intel_set_mode_pipes(set->crtc, set->mode,
 					   set->x, set->y, set->fb,
-- 
1.9.1




More information about the Intel-gfx mailing list