diff options
| author | Mario Limonciello <[email protected]> | 2025-05-29 14:46:32 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-06-18 17:08:18 +0000 |
| commit | 16dc8bc27c2aa3c93905d3e885e27f1e3535f09a (patch) | |
| tree | 4458bf14f0b822994d060553cef6c9cb527a593a /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | |
| parent | drm/amd/display: Only read ACPI backlight caps once (diff) | |
| download | kernel-16dc8bc27c2aa3c93905d3e885e27f1e3535f09a.tar.gz kernel-16dc8bc27c2aa3c93905d3e885e27f1e3535f09a.zip | |
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 <[email protected]>
Cc: Alex Deucher <[email protected]>
Reviewed-by: Roman Li <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit 8dbd72cb790058ce52279af38a43c2b302fdd3e5)
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions
