Commit 6f0db2dc authored by Krunoslav Kovac's avatar Krunoslav Kovac Committed by Alex Deucher

drm/amd/display: Make it more clear when info frames affect DP or HDMI

Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarKrunoslav Kovac <Krunoslav.Kovac@amd.com>
Reviewed-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2cbe6d9b
...@@ -665,16 +665,25 @@ static enum dc_status bios_parser_crtc_source_select( ...@@ -665,16 +665,25 @@ static enum dc_status bios_parser_crtc_source_select(
void dce110_update_info_frame(struct pipe_ctx *pipe_ctx) void dce110_update_info_frame(struct pipe_ctx *pipe_ctx)
{ {
bool is_hdmi;
bool is_dp;
ASSERT(pipe_ctx->stream); ASSERT(pipe_ctx->stream);
if (pipe_ctx->stream_res.stream_enc == NULL) if (pipe_ctx->stream_res.stream_enc == NULL)
return; /* this is not root pipe */ return; /* this is not root pipe */
if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) is_hdmi = dc_is_hdmi_signal(pipe_ctx->stream->signal);
is_dp = dc_is_dp_signal(pipe_ctx->stream->signal);
if (!is_hdmi && !is_dp)
return;
if (is_hdmi)
pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets( pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets(
pipe_ctx->stream_res.stream_enc, pipe_ctx->stream_res.stream_enc,
&pipe_ctx->stream_res.encoder_info_frame); &pipe_ctx->stream_res.encoder_info_frame);
else if (dc_is_dp_signal(pipe_ctx->stream->signal)) else
pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets( pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets(
pipe_ctx->stream_res.stream_enc, pipe_ctx->stream_res.stream_enc,
&pipe_ctx->stream_res.encoder_info_frame); &pipe_ctx->stream_res.encoder_info_frame);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment