aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-09-17 11:31:02 -0400
committerAlex Deucher <alexander.deucher@amd.com>2014-09-22 17:24:28 -0400
commit8aff6ad5a393b8e2ad00dce4d278ecf41397bf0d (patch)
tree48e9c0830b9f1c786b138ace0e59311cd0b3c319
parentbc13018b5eba26ca229b33763c9e61fac31a1925 (diff)
drm/radeon: add a backlight quirk for Amilo Xi 2550
Only the acpi backlight seems to work. Using the radeon backlight controller causes the backlight to go off. bug: https://bugs.freedesktop.org/show_bug.cgi?id=81382 Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/radeon/radeon_encoders.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c
index 2a9cd7be9aad..15edf23b465c 100644
--- a/drivers/gpu/drm/radeon/radeon_encoders.c
+++ b/drivers/gpu/drm/radeon/radeon_encoders.c
@@ -173,7 +173,14 @@ static void radeon_encoder_add_backlight(struct radeon_encoder *radeon_encoder,
173 } else if (radeon_backlight == 1) { 173 } else if (radeon_backlight == 1) {
174 use_bl = true; 174 use_bl = true;
175 } else if (radeon_backlight == -1) { 175 } else if (radeon_backlight == -1) {
176 use_bl = true; 176 /* Quirks */
177 /* Amilo Xi 2550 only works with acpi bl */
178 if ((rdev->pdev->device == 0x9583) &&
179 (rdev->pdev->subsystem_vendor == 0x1734) &&
180 (rdev->pdev->subsystem_device == 0x1107))
181 use_bl = false;
182 else
183 use_bl = true;
177 } 184 }
178 185
179 if (use_bl) { 186 if (use_bl) {