drm/amd/display: Use dc_is_hdmi_signal() instead of ENUM

Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Reviewed-by: Nevenko Stupar <Nevenko.Stupar@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Eric Bernstein 2019-02-22 11:11:07 -05:00 committed by Alex Deucher
parent 3c7dd2cbc8
commit 3a9aeadbdf
2 changed files with 2 additions and 3 deletions

View File

@ -1982,7 +1982,7 @@ static void enable_link_hdmi(struct pipe_ctx *pipe_ctx)
pipe_ctx->stream->signal, pipe_ctx->stream->signal,
stream->phy_pix_clk); stream->phy_pix_clk);
if (pipe_ctx->stream->signal == SIGNAL_TYPE_HDMI_TYPE_A) if (dc_is_hdmi_signal(pipe_ctx->stream->signal))
dal_ddc_service_read_scdc_data(link->ddc); dal_ddc_service_read_scdc_data(link->ddc);
} }

View File

@ -95,7 +95,6 @@ struct resource_funcs {
void (*link_init)(struct dc_link *link); void (*link_init)(struct dc_link *link);
struct link_encoder *(*link_enc_create)( struct link_encoder *(*link_enc_create)(
const struct encoder_init_data *init); const struct encoder_init_data *init);
bool (*validate_bandwidth)( bool (*validate_bandwidth)(
struct dc *dc, struct dc *dc,
struct dc_state *context); struct dc_state *context);