mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/amd/display: Set default brightness according to ACPI
Currently, amdgpu will always set up the brightness at 100% when it loads. However this is jarring when the BIOS has it previously programmed to a much lower value. The ACPI ATIF method includes two members for "ac_level" and "dc_level". These represent the default values that should be used if the system is brought up in AC and DC respectively. Use these values to set up the default brightness when the backlight device is registered. v2: squash in ACPI fix Reviewed-by: Leo Li <sunpeng.li@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
ee3942d9ab
commit
2fe87f54ab
@@ -180,6 +180,14 @@ struct amdgpu_dm_backlight_caps {
|
||||
* @aux_support: Describes if the display supports AUX backlight.
|
||||
*/
|
||||
bool aux_support;
|
||||
/**
|
||||
* @ac_level: the default brightness if booted on AC
|
||||
*/
|
||||
u8 ac_level;
|
||||
/**
|
||||
* @dc_level: the default brightness if booted on DC
|
||||
*/
|
||||
u8 dc_level;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user