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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux