ASoC: msm8998: Set headphones only for a "3-pole-jack".
am: 10a367d9d3

Change-Id: I5109a0adfd96af9551a4acd570c1607d1f180d97
diff --git a/sound/soc/msm/msm8998.c b/sound/soc/msm/msm8998.c
index 264be25..457d291 100644
--- a/sound/soc/msm/msm8998.c
+++ b/sound/soc/msm/msm8998.c
@@ -7478,7 +7478,10 @@
 			pdev->dev.of_node->full_name);
 		dev_dbg(&pdev->dev, "Jack type properties set to default");
 	} else {
-		if (!strcmp(mbhc_audio_jack_type, "4-pole-jack")) {
+		if (!strcmp(mbhc_audio_jack_type, "3-pole-jack")) {
+			wcd_mbhc_cfg.headphones_only = true;
+			dev_dbg(&pdev->dev, "This hardware has 3 pole jack");
+		} else if (!strcmp(mbhc_audio_jack_type, "4-pole-jack")) {
 			wcd_mbhc_cfg.enable_anc_mic_detect = false;
 			dev_dbg(&pdev->dev, "This hardware has 4 pole jack");
 		} else if (!strcmp(mbhc_audio_jack_type, "5-pole-jack")) {