ASoC: Intel: bytcr_rt5651: Add quirk for the VIOS LTH17 laptop
authorHans de Goede <hdegoede@redhat.com>
Sun, 4 Mar 2018 14:36:08 +0000 (15:36 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 7 Mar 2018 14:19:40 +0000 (14:19 +0000)
Add a quirk setting up jack-detect and input routing for the
VIOS LTH17 laptop.

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

index 103c4b0..d5a3d48 100644 (file)
@@ -393,6 +393,19 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = {
                                        BYT_RT5651_OVCD_SF_0P75 |
                                        BYT_RT5651_IN2_HS_IN3_MAP),
        },
+       {
+               /* VIOS LTH17 */
+               .callback = byt_rt5651_quirk_cb,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "VIOS"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "LTH17"),
+               },
+               .driver_data = (void *)(BYT_RT5651_MCLK_EN |
+                                       BYT_RT5651_JD1_1 |
+                                       BYT_RT5651_OVCD_TH_2000UA |
+                                       BYT_RT5651_OVCD_SF_1P0 |
+                                       BYT_RT5651_IN1_IN2_MAP),
+       },
        {}
 };