drm/amd/display: combine output signal and signal
authorEric Yang <Eric.Yang2@amd.com>
Fri, 3 Nov 2017 21:58:42 +0000 (17:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:37 +0000 (12:47 -0500)
output signal used to be a public member to be used by DM to override
the stream signal. Now since there is no longer separation between
public and private part of stream, they are combined. The overriding
was not working properly as well, which is addressed by this change

Signed-off-by: Eric Yang <Eric.Yang2@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>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/dc.h

index e230cc44a0a7d31f5889d5cb0f4f0688612ace4b..375fb457e22353c0714464aa1142dc867879d190 100644 (file)
 #define TMDS_MAX_PIXEL_CLOCK_IN_KHZ_UPMOST 297000
 static void update_stream_signal(struct dc_stream_state *stream)
 {
-       if (stream->output_signal == SIGNAL_TYPE_NONE) {
-               struct dc_sink *dc_sink = stream->sink;
 
-               if (dc_sink->sink_signal == SIGNAL_TYPE_NONE)
-                       stream->signal = stream->sink->link->connector_signal;
-               else
-                       stream->signal = dc_sink->sink_signal;
-       } else {
-               stream->signal = stream->output_signal;
-       }
+       struct dc_sink *dc_sink = stream->sink;
+
+       if (dc_sink->sink_signal == SIGNAL_TYPE_NONE)
+               stream->signal = stream->sink->link->connector_signal;
+       else
+               stream->signal = dc_sink->sink_signal;
 
        if (dc_is_dvi_signal(stream->signal)) {
                if (stream->timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK_IN_KHZ_UPMOST &&
index 74955f458fbbf0820b68580dd8e3a1949f836de7..f2647b40f3cbff073544c89d1c9b9dbee4bb018b 100644 (file)
@@ -579,8 +579,6 @@ struct dc_stream_state {
        struct colorspace_transform gamut_remap_matrix;
        struct csc_transform csc_color_matrix;
 
-       enum signal_type output_signal;
-
        enum dc_color_space output_color_space;
        enum dc_dither_option dither_option;