mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 04:23:03 +02:00
drm/amd/display: Fix backlight control for luminance-capable OLED
[WHY] For some eDP panels VESA aux backlight control is necessary, otherwise they stay black. [HOW] When AUX backlight control is used, select BACKLIGHT_CONTROL_VESA_AUX for panels that advertise panel_luminance_control. Reviewed-by: Hansen Dsouza <hansen.dsouza@amd.com> Signed-off-by: Roman Li <Roman.Li@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 42f698bd061d76d5f4c84a195e465cfbeec775e4)
This commit is contained in:
parent
93a77d353c
commit
5a67d2e055
|
|
@ -534,8 +534,12 @@ void amdgpu_dm_update_connector_ext_caps(struct amdgpu_dm_connector *aconnector)
|
|||
else if (!IS_ERR_OR_NULL(panel_backlight_quirk) &&
|
||||
panel_backlight_quirk->force_pwm)
|
||||
caps->aux_support = false;
|
||||
if (caps->aux_support)
|
||||
aconnector->dc_link->backlight_control_type = BACKLIGHT_CONTROL_AMD_AUX;
|
||||
if (caps->aux_support) {
|
||||
if (aconnector->dc_link->dpcd_caps.panel_luminance_control)
|
||||
aconnector->dc_link->backlight_control_type = BACKLIGHT_CONTROL_VESA_AUX;
|
||||
else
|
||||
aconnector->dc_link->backlight_control_type = BACKLIGHT_CONTROL_AMD_AUX;
|
||||
}
|
||||
|
||||
luminance_range = &conn_base->display_info.luminance_range;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user