Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8aff6ad5 authored by Alex Deucher's avatar Alex Deucher
Browse files

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: default avatarAlex Deucher <alexander.deucher@amd.com>
parent bc13018b
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -173,6 +173,13 @@ static void radeon_encoder_add_backlight(struct radeon_encoder *radeon_encoder,
	} else if (radeon_backlight == 1) {
		use_bl = true;
	} else if (radeon_backlight == -1) {
		/* Quirks */
		/* Amilo Xi 2550 only works with acpi bl */
		if ((rdev->pdev->device == 0x9583) &&
		    (rdev->pdev->subsystem_vendor == 0x1734) &&
		    (rdev->pdev->subsystem_device == 0x1107))
			use_bl = false;
		else
			use_bl = true;
	}