Commit 63b50a95 authored by Jinze Xu's avatar Jinze Xu Committed by Alex Deucher

drm/amd/display: Workaround to disable YCbCr

[Why]
Some mst dock can't translate DP to HDMI properly.

[How]
Bypass YCbCr timings on specific MST device.
Signed-off-by: default avatarJinze Xu <jinze.xu@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d652509e
...@@ -54,6 +54,7 @@ static bool dc_sink_construct(struct dc_sink *sink, const struct dc_sink_init_da ...@@ -54,6 +54,7 @@ static bool dc_sink_construct(struct dc_sink *sink, const struct dc_sink_init_da
sink->ctx = link->ctx; sink->ctx = link->ctx;
sink->dongle_max_pix_clk = init_params->dongle_max_pix_clk; sink->dongle_max_pix_clk = init_params->dongle_max_pix_clk;
sink->converter_disable_audio = init_params->converter_disable_audio; sink->converter_disable_audio = init_params->converter_disable_audio;
sink->is_mst_legacy = init_params->sink_is_legacy;
sink->dc_container_id = NULL; sink->dc_container_id = NULL;
sink->sink_id = init_params->link->ctx->dc_sink_id_count; sink->sink_id = init_params->link->ctx->dc_sink_id_count;
// increment dc_sink_id_count because we don't want two sinks with same ID // increment dc_sink_id_count because we don't want two sinks with same ID
......
...@@ -1079,7 +1079,7 @@ struct dc_sink { ...@@ -1079,7 +1079,7 @@ struct dc_sink {
void *priv; void *priv;
struct stereo_3d_features features_3d[TIMING_3D_FORMAT_MAX]; struct stereo_3d_features features_3d[TIMING_3D_FORMAT_MAX];
bool converter_disable_audio; bool converter_disable_audio;
bool is_mst_legacy;
struct dc_sink_dsc_caps dsc_caps; struct dc_sink_dsc_caps dsc_caps;
struct dc_sink_fec_caps fec_caps; struct dc_sink_fec_caps fec_caps;
...@@ -1106,6 +1106,7 @@ struct dc_sink_init_data { ...@@ -1106,6 +1106,7 @@ struct dc_sink_init_data {
struct dc_link *link; struct dc_link *link;
uint32_t dongle_max_pix_clk; uint32_t dongle_max_pix_clk;
bool converter_disable_audio; bool converter_disable_audio;
bool sink_is_legacy;
}; };
struct dc_sink *dc_sink_create(const struct dc_sink_init_data *init_params); struct dc_sink *dc_sink_create(const struct dc_sink_init_data *init_params);
......
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