summaryrefslogtreecommitdiff
path: root/sound/soc/msm/msm8226.c
diff options
context:
space:
mode:
authorPhani Kumar Uppalapati <phaniu@codeaurora.org>2013-05-03 11:19:33 -0700
committerStephen Boyd <sboyd@codeaurora.org>2013-09-04 16:34:30 -0700
commit07aa24b8b29dd1cf4124180ee7fd611f12aff9c3 (patch)
tree5ea85099ff259a5721116e125b7487a82923d30b /sound/soc/msm/msm8226.c
parenta58fc2fc8bac547bca82c55ca5f2cf4faf2e6057 (diff)
ASoC: msm: Configure gpio level insert based on the headset jack type
8x26 platforms have different headset jack types, so configure the GPIO level based on jack type read from the device tree. Default is "Noramlly Closed". For Normally Closed headset jack types, set GPIO level to 0 and for Normally Open headset jack types, set GPIO level to 1. Change-Id: I9ed5f2545986b545bb2494f3f88659e4060b4b2a CRs-fixed: 481386 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
Diffstat (limited to 'sound/soc/msm/msm8226.c')
-rw-r--r--sound/soc/msm/msm8226.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/msm/msm8226.c b/sound/soc/msm/msm8226.c
index 5ea7e9fa1c1d..ac5c531f97a3 100644
--- a/sound/soc/msm/msm8226.c
+++ b/sound/soc/msm/msm8226.c
@@ -1146,6 +1146,9 @@ static int msm8226_asoc_machine_probe(struct platform_device *pdev)
}
}
+ mbhc_cfg.gpio_level_insert = of_property_read_bool(pdev->dev.of_node,
+ "qcom,headset-jack-type-NO");
+
ret = msm8226_prepare_codec_mclk(card);
if (ret)
goto err_vdd_spkr;