summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/video_detect.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-11-14 15:44:56 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-11-16 19:52:48 +0100
commit23735543eb228c604e59f99f2f5d13aa507e5db2 (patch)
treea022fa7524b50f513c980372908e25d7c38c3b6b /drivers/acpi/video_detect.c
parentACPI: video: Change Sony Vaio VPCEH3U1E quirk to force_native (diff)
downloadlinux-23735543eb228c604e59f99f2f5d13aa507e5db2.tar.xz
linux-23735543eb228c604e59f99f2f5d13aa507e5db2.zip
ACPI: video: Add force_vendor quirk for Sony Vaio PCG-FRV35
The Sony Vaio PCG-FRV35 advertises both native and vendor backlight control interfaces. With the upcoming changes to prefer native over vendor acpi_video_get_backlight_type() will start returning native on these laptops. But the native radeon_bl0 interface does not work, where as the sony vendor interface does work. Add a quirk to force use of the vendor interface. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/video_detect.c')
-rw-r--r--drivers/acpi/video_detect.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index 327e0967ba54..43f667523ab0 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -240,6 +240,19 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
},
/*
+ * Models which should use the vendor backlight interface,
+ * because of broken native backlight control.
+ */
+ {
+ .callback = video_detect_force_vendor,
+ /* Sony Vaio PCG-FRV35 */
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "PCG-FRV35"),
+ },
+ },
+
+ /*
* Toshiba models with Transflective display, these need to use
* the toshiba_acpi vendor driver for proper Transflective handling.
*/