diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2025-05-29 09:46:32 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-06-18 12:19:17 -0400 |
commit | 8dbd72cb790058ce52279af38a43c2b302fdd3e5 (patch) | |
tree | 9a2bac366f857cfb67ccbd43f29cd9f72c68d41f /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 148144f6d2f14b02eaaa39b86bbe023cbff350bd (diff) |
drm/amd/display: Export full brightness range to userspace
[WHY]
Userspace currently is offered a range from 0-0xFF but the PWM is
programmed from 0-0xFFFF. This can be limiting to some software
that wants to apply greater granularity.
[HOW]
Convert internally to firmware values only when mapping custom
brightness curves because these are in 0-0xFF range. Advertise full
PWM range to userspace.
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Roman Li <roman.li@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions