linux/drivers/gpu/drm/amd/display/modules
Anthony Koo 4fa6a75128 drm/amd/display: fix calculation for the pwl backlight curve
[Why]
The PWL backlight curve is used by the firmware to convert between
brightness and linear PWM value.
Driver has a backlight LUT, but the firmware holds a PWL curve and
interpolates between points.

The calculations are incorrect leading to slightly off backlight values
being programmed.

[How]
Fix the PWL backlight curve threshold/offset calculations

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Josip Pavic <Josip.Pavic@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-02-02 12:09:46 -05:00
..
color drm/amd/display: change license of color_table.c 2021-01-25 17:47:57 -05:00
freesync drm/amd/display: Set FixRate bit in VSIF V3 2020-12-08 23:03:04 -05:00
hdcp drm/amd/display: correct some hdcp variable naming 2021-02-02 12:09:09 -05:00
inc drm/amd/display: correct some hdcp variable naming 2021-02-02 12:09:09 -05:00
info_packet drm/amd/display/modules/info_packet/info_packet: Correct kernel-doc formatting 2021-01-14 13:20:20 -05:00
power drm/amd/display: fix calculation for the pwl backlight curve 2021-02-02 12:09:46 -05:00
vmid drm/amd/display: correct rn NUM_VMID 2020-05-21 12:48:43 -04:00