]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Add support for custom brightness curve
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 28 Feb 2025 18:51:44 +0000 (12:51 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Mar 2025 15:42:51 +0000 (10:42 -0500)
commit578df37b1b6a5bc41602cdab3d982072e5688222
tree1852a9530ab13475c51b6d04267ee2a29f8ac325
parentf25c0f0d4f99df9725e50d282c9143fa51e84645
drm/amd/display: Add support for custom brightness curve

Some systems specify in the firmware a brightness curve that better
reflects the characteristics of the panel used. This is done in the
form of data points and matching luminance percentage.

When converting a userspace requested brightness value use that curve
to convert to a firmware intended brightness value.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Link: https://lore.kernel.org/r/20250228185145.186319-5-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c