Skip to content

Commit c06f670

Browse files
Eric Bernsteinalexdeucher
authored andcommitted
drm/amd/display: Use parameter for call to set output mux
Signed-off-by: Eric Bernstein <[email protected]> Reviewed-by: Chris Park <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent a153838 commit c06f670

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,6 +3102,9 @@ void core_link_enable_stream(
31023102
struct dc *dc = pipe_ctx->stream->ctx->dc;
31033103
struct dc_stream_state *stream = pipe_ctx->stream;
31043104
enum dc_status status;
3105+
#if defined(CONFIG_DRM_AMD_DC_DCN3_0)
3106+
enum otg_out_mux_dest otg_out_dest = OUT_MUX_DIO;
3107+
#endif
31053108
DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger);
31063109

31073110
if (!IS_DIAG_DC(dc->ctx->dce_environment) &&
@@ -3136,8 +3139,8 @@ void core_link_enable_stream(
31363139
pipe_ctx->stream->link->link_state_valid = true;
31373140

31383141
#if defined(CONFIG_DRM_AMD_DC_DCN3_0)
3139-
if (pipe_ctx->stream_res.tg->funcs->set_out_mux)
3140-
pipe_ctx->stream_res.tg->funcs->set_out_mux(pipe_ctx->stream_res.tg, OUT_MUX_DIO);
3142+
if (pipe_ctx->stream_res.tg->funcs->set_out_mux)
3143+
pipe_ctx->stream_res.tg->funcs->set_out_mux(pipe_ctx->stream_res.tg, otg_out_dest);
31413144
#endif
31423145

31433146
if (dc_is_dvi_signal(pipe_ctx->stream->signal))

0 commit comments

Comments
 (0)