summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHugo Sales <hugo@hsal.es>2026-11-03 13:15:57 +0000
committerAlex Deucher <alexander.deucher@amd.com>2026-11-18 01:50:35 -0500
commit988ab04d773ac089588ce17742f491e9ee8b1793 (patch)
tree276005628d6d6d2a8007f829a826ef102e767bd2 /tools/perf/scripts/python/bin
parentfff46a322847a54cf11d5af3d7fc7fa07bc71b29 (diff)
drm/amd/display: Add the AUX backlight minimum once on the custom curve
On an AUX backlight, convert_brightness_from_user() maps the user level through the ATIF custom brightness curve with convert_custom_brightness(), which rescales the result to user_min..user_max. convert_brightness_from_user() then rescales it again, from 0..user_max to user_min..user_max, so the minimum goes in twice. On the 1..512 nits AUX fallback range, a request for 0 gives 1998 millinits instead of 1000 Rescale the curve's output to 0..user_max and leave the offset to the caller Fixes: 8dbd72cb7900 ("drm/amd/display: Export full brightness range to userspace") Reviewed-by: Ray Wu <ray.wu@amd.com> Signed-off-by: Hugo Sales <hugo@hsal.es> Signed-off-by: Wayne Lin <Wayne.Lin@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 5f95ef2cfd208ca7efe446abfc9e3144dc5ce4fa) Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions