Browse Source

drm/amd/display: Clear test pattern when enabling stream

Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Hersen Wu 8 years ago
parent
commit
71021265a6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      drivers/gpu/drm/amd/display/dc/core/dc_link.c

+ 5 - 0
drivers/gpu/drm/amd/display/dc/core/dc_link.c

@@ -1846,6 +1846,11 @@ void core_link_enable_stream(struct pipe_ctx *pipe_ctx)
 			return;
 			return;
 	}
 	}
 
 
+	/* turn off otg test pattern if enable */
+	pipe_ctx->tg->funcs->set_test_pattern(pipe_ctx->tg,
+			CONTROLLER_DP_TEST_PATTERN_VIDEOMODE,
+			COLOR_DEPTH_UNDEFINED);
+
 	core_dc->hwss.enable_stream(pipe_ctx);
 	core_dc->hwss.enable_stream(pipe_ctx);
 
 
 	if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)
 	if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)