diff options
author | Camille Cho <[email protected]> | 2023-11-03 12:08:42 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-11-29 16:49:00 -0500 |
commit | 43b8ac4b34ec239bccf4a692c1227ef51a95a4d2 (patch) | |
tree | 1aaeb0151cb70856c3cbd68502b46c9a581b0f05 /drivers/gpu/drm/amd/display/dc/dc.h | |
parent | 37f4382b64a2b01109a0ed5c05f58d3f86385e10 (diff) |
drm/amd/display: Simplify brightness initialization
[Why]
Remove the brightness cache in DC. It uses a single value to represent
the brightness for both SDR and HDR mode. This leads to flash in HDR
on/off. It also unconditionally programs brightness as in HDR mode. This
may introduce garbage on SDR mode in miniLED panel.
[How]
Simplify the initialization flow by removing the DC cache and taking
what panel has as default. Expand the mechanism for PWM to DPCD Aux to
restore cached brightness value generally.
Cc: [email protected] # 6.1+
Reviewed-by: Krunoslav Kovac <[email protected]>
Acked-by: Hamza Mahfooz <[email protected]>
Signed-off-by: Camille Cho <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 349629858205..18b8d7f3f738 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h @@ -1610,7 +1610,6 @@ struct dc_link { enum edp_revision edp_revision; union dpcd_sink_ext_caps dpcd_sink_ext_caps; - struct backlight_settings backlight_settings; struct psr_settings psr_settings; struct replay_settings replay_settings; |