Skip to content

Commit ba02bf8

Browse files
committed
drm/dp: Enable backlight control using luminance
Add flag to enable brightness control via luminance value when enabling edp backlight. Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com> Link: https://lore.kernel.org/r/20250620063445.3603086-11-suraj.kandpal@intel.com
1 parent 05a76ae commit ba02bf8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/display/drm_dp_helper.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4038,6 +4038,9 @@ int drm_edp_backlight_enable(struct drm_dp_aux *aux, const struct drm_edp_backli
40384038
else
40394039
dpcd_buf = DP_EDP_BACKLIGHT_CONTROL_MODE_PWM;
40404040

4041+
if (bl->luminance_set)
4042+
dpcd_buf |= DP_EDP_PANEL_LUMINANCE_CONTROL_ENABLE;
4043+
40414044
if (bl->pwmgen_bit_count) {
40424045
ret = drm_dp_dpcd_write_byte(aux, DP_EDP_PWMGEN_BIT_COUNT, bl->pwmgen_bit_count);
40434046
if (ret < 0)

0 commit comments

Comments
 (0)