mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
drm/amd: Pass luminance data to amdgpu_dm_backlight_caps
The ATIF method on some systems will provide a backlight curve. Pass this curve into amdgpu_dm add it to the structures. Reviewed-by: Alex Hung <alex.hung@amd.com> Link: https://lore.kernel.org/r/20250228185145.186319-3-mario.limonciello@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
1c79b5fcdf
commit
f729e63743
@@ -151,6 +151,18 @@ struct idle_workqueue {
|
||||
bool running;
|
||||
};
|
||||
|
||||
#define MAX_LUMINANCE_DATA_POINTS 99
|
||||
|
||||
/**
|
||||
* struct amdgpu_dm_luminance_data - Custom luminance data
|
||||
* @luminance: Luminance in percent
|
||||
* @input_signal: Input signal in range 0-255
|
||||
*/
|
||||
struct amdgpu_dm_luminance_data {
|
||||
u8 luminance;
|
||||
u8 input_signal;
|
||||
} __packed;
|
||||
|
||||
/**
|
||||
* struct amdgpu_dm_backlight_caps - Information about backlight
|
||||
*
|
||||
@@ -195,6 +207,14 @@ struct amdgpu_dm_backlight_caps {
|
||||
* @dc_level: the default brightness if booted on DC
|
||||
*/
|
||||
u8 dc_level;
|
||||
/**
|
||||
* @data_points: the number of custom luminance data points
|
||||
*/
|
||||
u8 data_points;
|
||||
/**
|
||||
* @luminance_data: custom luminance data
|
||||
*/
|
||||
struct amdgpu_dm_luminance_data luminance_data[MAX_LUMINANCE_DATA_POINTS];
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user