]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: Add ThinkPad R61, ThinkPad T61 to OSI(Linux) white-list
authorLen Brown <len.brown@intel.com>
Thu, 24 Jan 2008 01:56:18 +0000 (20:56 -0500)
committerLen Brown <len.brown@intel.com>
Thu, 24 Jan 2008 02:26:28 +0000 (21:26 -0500)
acpi_osi=Linux helps sound on these systems.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/blacklist.c

index 018fc16c44ce26fa7e962b56651e0d2b57901d86..e88d4460afda10c1e51d3d5b81febd12b1deb694 100644 (file)
@@ -173,7 +173,34 @@ int __init acpi_blacklisted(void)
        return blacklisted;
 }
 #ifdef CONFIG_DMI
+static int __init dmi_enable_osi_linux(const struct dmi_system_id *d)
+{
+       acpi_dmi_osi_linux(1, d);       /* enable */
+       return 0;
+}
+
 static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
+       /*
+        * _OSI(Linux) helps sound
+        * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad R61"),
+        * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T61"),
+        */
+       {
+       .callback = dmi_enable_osi_linux,
+       .ident = "Lenovo ThinkPad R61",
+       .matches = {
+                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                    DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad R61"),
+               },
+       },
+       {
+       .callback = dmi_enable_osi_linux,
+       .ident = "Lenovo ThinkPad T61",
+       .matches = {
+                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                    DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T61"),
+               },
+       },
        {}
 };