ASoC: samsung: Enable accessory detect for WM8994 on Littlemill
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Feb 2012 13:15:18 +0000 (13:15 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Feb 2012 14:04:51 +0000 (14:04 +0000)
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 <broonie@opensource.wolfsonmicro.com>
sound/soc/samsung/littlemill.c

index 9dd818bde06fb6347d9a6e2f79717ae9766123d8..e7416851bf7d0237e97f33fd58b60886ab3ec4f0 100644 (file)
@@ -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;
 }