mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 21:53:28 +07:00
drm/amd/display: power_down_Hw need signal type to turnoff backlight
Signed-off-by: Charlene Liu <charlene.liu@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
4b7e7e2b1b
commit
68d77dd821
@ -1171,6 +1171,7 @@ static void power_down_encoders(struct dc *dc)
|
||||
{
|
||||
int i;
|
||||
enum connector_id connector_id;
|
||||
enum signal_type signal = SIGNAL_TYPE_NONE;
|
||||
for (i = 0; i < dc->link_count; i++) {
|
||||
connector_id = dal_graphics_object_id_get_connector_id(dc->links[i]->link_id);
|
||||
if ((connector_id == CONNECTOR_ID_DISPLAY_PORT) ||
|
||||
@ -1178,10 +1179,12 @@ static void power_down_encoders(struct dc *dc)
|
||||
|
||||
if (!dc->links[i]->wa_flags.dp_keep_receiver_powered)
|
||||
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, SIGNAL_TYPE_NONE);
|
||||
dc->links[i]->link_enc, signal);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user