提交 68d77dd8 编写于 作者: A Andrew Jiang 提交者: Alex Deucher

drm/amd/display: power_down_Hw need signal type to turnoff backlight

Signed-off-by: NCharlene Liu <charlene.liu@amd.com>
Reviewed-by: NAnthony Koo <Anthony.Koo@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 4b7e7e2b
...@@ -1171,6 +1171,7 @@ static void power_down_encoders(struct dc *dc) ...@@ -1171,6 +1171,7 @@ static void power_down_encoders(struct dc *dc)
{ {
int i; int i;
enum connector_id connector_id; enum connector_id connector_id;
enum signal_type signal = SIGNAL_TYPE_NONE;
for (i = 0; i < dc->link_count; i++) { for (i = 0; i < dc->link_count; i++) {
connector_id = dal_graphics_object_id_get_connector_id(dc->links[i]->link_id); connector_id = dal_graphics_object_id_get_connector_id(dc->links[i]->link_id);
if ((connector_id == CONNECTOR_ID_DISPLAY_PORT) || if ((connector_id == CONNECTOR_ID_DISPLAY_PORT) ||
...@@ -1178,10 +1179,12 @@ static void power_down_encoders(struct dc *dc) ...@@ -1178,10 +1179,12 @@ static void power_down_encoders(struct dc *dc)
if (!dc->links[i]->wa_flags.dp_keep_receiver_powered) if (!dc->links[i]->wa_flags.dp_keep_receiver_powered)
dp_receiver_power_ctrl(dc->links[i], false); dp_receiver_power_ctrl(dc->links[i], false);
if (connector_id == CONNECTOR_ID_EDP)
signal = SIGNAL_TYPE_EDP;
} }
dc->links[i]->link_enc->funcs->disable_output( dc->links[i]->link_enc->funcs->disable_output(
dc->links[i]->link_enc, SIGNAL_TYPE_NONE); dc->links[i]->link_enc, signal);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册