ASoC: rt5670: Add quirk for Thinkpad 8 tablet
authorHans de Goede <hdegoede@redhat.com>
Tue, 21 Aug 2018 11:43:35 +0000 (13:43 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 28 Aug 2018 19:37:05 +0000 (20:37 +0100)
The Thinkpad 8 needs a quirk for jack-detect and the internal mic to
work correctly.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5670.c

index 732ef928b25d9c729772f96060a4bb852678572e..455fe7cff700bd9f58f72c3627b00bd44a2c8fe8 100644 (file)
@@ -2875,6 +2875,18 @@ static const struct dmi_system_id dmi_platform_intel_quirks[] = {
                                                 RT5670_DEV_GPIO |
                                                 RT5670_JD_MODE1),
        },
+       {
+               .callback = rt5670_quirk_cb,
+               .ident = "Lenovo Thinkpad Tablet 8",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad 8"),
+               },
+               .driver_data = (unsigned long *)(RT5670_DMIC_EN |
+                                                RT5670_DMIC2_INR |
+                                                RT5670_DEV_GPIO |
+                                                RT5670_JD_MODE1),
+       },
        {
                .callback = rt5670_quirk_cb,
                .ident = "Lenovo Thinkpad Tablet 10",