disp: msm: sde: add support for digital dimming

Add a new connector property to allow DC dimming feature to set
dimming backlight LUT. This change also adds a connector event
for client to register for backlight info needed for digital dimming
feature, including OS brightness, OS brightness_max, panel_backlight,
panel_backlight_max, and scale factors from ABA and LTM features.

Change-Id: I78f713fb2b965ca24effd973b4dfa9ff07a852f8
Signed-off-by: Ping Li <pingli@codeaurora.org>
This commit is contained in:
Ping Li
2021-01-20 15:36:37 -08:00
parent 72f7dfe428
commit 9a17c5783b
8 changed files with 113 additions and 0 deletions

View File

@@ -502,6 +502,7 @@ struct sde_connector_dyn_hdr_metadata {
* @hdr_supported: does the sink support HDR content
* @color_enc_fmt: Colorimetry encoding formats of sink
* @allow_bl_update: Flag to indicate if BL update is allowed currently or not
* @dimming_bl_notify_enabled: Flag to indicate if dimming bl notify is enabled or not
* @qsync_mode: Cached Qsync mode, 0=disabled, 1=continuous mode
* @qsync_updated: Qsync settings were updated
* @avr_step: fps rate for fixed steps in AVR mode; 0 means step is disabled
@@ -561,6 +562,7 @@ struct sde_connector {
u32 bl_scale_sv;
u32 unset_bl_level;
bool allow_bl_update;
bool dimming_bl_notify_enabled;
u32 hdr_eotf;
bool hdr_metadata_type_one;