ASoC: intel: byt: Enable IN2 map quirk for a KIANO laptop
authorCarlo Caione <carlo@endlessm.com>
Fri, 20 Oct 2017 11:18:57 +0000 (12:18 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 26 Oct 2017 14:15:55 +0000 (16:15 +0200)
This cherry-trails laptop has the internal mic connected to the IN2
input pins. Enable the quirk to correctly map the routes.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5651.c

index 0df9067e4382487cdebc82523883154a582b7e2e..d955836c6870a8ad7d6cbe4939fbc3c457738c77 100644 (file)
@@ -250,6 +250,14 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = {
                .driver_data = (void *)(BYT_RT5651_DMIC_MAP |
                                        BYT_RT5651_DMIC_EN),
        },
+       {
+               .callback = byt_rt5651_quirk_cb,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "KIANO"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "KIANO SlimNote 14.2"),
+               },
+               .driver_data = (void *)(BYT_RT5651_IN2_MAP),
+       },
        {}
 };