Commit 68d77dd8 authored by Andrew Jiang's avatar Andrew Jiang Committed by Alex Deucher

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

Signed-off-by: default avatarCharlene Liu <charlene.liu@amd.com>
Reviewed-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment