diff options
author | John Muir <muirj@google.com> | 2018-04-30 09:26:00 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-04-30 09:26:00 -0700 |
commit | b1f1918627eec6c57c8ef8f8c676c1ce7aa3e4b0 (patch) | |
tree | 7fe60f44cca84c0ffb1ef332a35d2db0d456dec6 | |
parent | 0451f51fa98c3ab41f0a2ac46d985597f6670a31 (diff) | |
parent | 10a367d9d380ae41ee22b9eb23e17f9b892bab92 (diff) |
ASoC: msm8998: Set headphones only for a "3-pole-jack".android-daydreamos-8.0.0_r0.3
am: 10a367d9d3
Change-Id: I5109a0adfd96af9551a4acd570c1607d1f180d97
-rw-r--r-- | sound/soc/msm/msm8998.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/msm/msm8998.c b/sound/soc/msm/msm8998.c index 264be2521b0c..457d29129f4e 100644 --- a/sound/soc/msm/msm8998.c +++ b/sound/soc/msm/msm8998.c @@ -7478,7 +7478,10 @@ static int msm_asoc_machine_probe(struct platform_device *pdev) 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")) { |