From: Mark Brown Date: Fri, 3 Feb 2012 13:15:18 +0000 (+0000) Subject: ASoC: samsung: Enable accessory detect for WM8994 on Littlemill X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=654a28c9dcf74a771318dacf237dd027944621b3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: samsung: Enable accessory detect for WM8994 on Littlemill The WM8994 has a different accessory detect architecture, call its setup function too. We ignore the errors and the driver will check for chip type so it's safe to call the setup functions for both architectures. Signed-off-by: Mark Brown --- diff --git a/sound/soc/samsung/littlemill.c b/sound/soc/samsung/littlemill.c index 9dd818bde06f..e7416851bf7d 100644 --- a/sound/soc/samsung/littlemill.c +++ b/sound/soc/samsung/littlemill.c @@ -189,6 +189,9 @@ static int littlemill_late_probe(struct snd_soc_card *card) /* This will check device compatibility itself */ wm8958_mic_detect(codec, &littlemill_headset, NULL, NULL); + /* As will this */ + wm8994_mic_detect(codec, &littlemill_headset, 1); + return 0; }