From: Carlo Caione Date: Fri, 20 Oct 2017 11:18:59 +0000 (+0100) Subject: ASoC: rt5651: Enable JD1_1 quirk for KIANO laptopt X-Git-Tag: v4.15-rc1~118^2~1^2~2^3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f85353fdd49fe0087438ef7d7475a832d16276c4;p=thirdparty%2Fkernel%2Flinux.git ASoC: rt5651: Enable JD1_1 quirk for KIANO laptopt The KIANO SlimNote 14.2 laptop uses the JD1_1 input pin for jack detection. Set the correct quirk in the codec driver. Signed-off-by: Carlo Caione Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c index f01d411016316..831b297978a48 100644 --- a/sound/soc/codecs/rt5651.c +++ b/sound/soc/codecs/rt5651.c @@ -1753,6 +1753,14 @@ static int rt5651_quirk_cb(const struct dmi_system_id *id) } static const struct dmi_system_id rt5651_quirk_table[] = { + { + .callback = rt5651_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "KIANO"), + DMI_MATCH(DMI_PRODUCT_NAME, "KIANO SlimNote 14.2"), + }, + .driver_data = (unsigned long *) RT5651_JD1_1, + }, {} };