ASoC: Intel: Atom: update Thinkpad 10 quirk
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 17 Apr 2017 15:04:07 +0000 (10:04 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 18 Apr 2017 17:19:04 +0000 (18:19 +0100)
There are multiple skews of the same Lenovo audio hardware
based on the Realtek RT5670 codec.

Manufacturer: LENOVO
        Product Name: 20C1CTO1WW
        Version: ThinkPad 10

Manufacturer: LENOVO
Product Name: 20C3001VHH
Version: ThinkPad 10

Manufacturer: LENOVO
Product Name: 20C10024GE
Version: ThinkPad Tablet B

Manufacturer: LENOVO
Product Name: 20359
Version: Lenovo Miix 2 10

For all these devices, the same quirk is used to force
the machine driver to be based on RT5670 instead of RT5640
as indicated by the BIOS.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=96691
Tested-by: Nicole Faerber <nicole.faerber@dpin.de>
Tested-by: Viacheslav Ostroukh <v.dev@ostroukh.me>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_acpi.c

index 18fe46ef6ac7d7a50cb5b30b2cfbfc9b532e3008..dd250b8b26f24c2d09012f9a7a434ae661b5bf49 100644 (file)
@@ -420,7 +420,21 @@ static const struct dmi_system_id byt_table[] = {
                .callback = byt_thinkpad10_quirk_cb,
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-                       DMI_MATCH(DMI_PRODUCT_NAME, "20C3001VHH"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad 10"),
+               },
+       },
+       {
+               .callback = byt_thinkpad10_quirk_cb,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad Tablet B"),
+               },
+       },
+       {
+               .callback = byt_thinkpad10_quirk_cb,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo Miix 2 10"),
                },
        },
        { }