OSDN Git Service

ASoC: codecs: msm8916-wcd-analog: add MBHC support
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 17 Aug 2017 08:02:10 +0000 (10:02 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 21 Aug 2017 18:33:02 +0000 (19:33 +0100)
commitde66b3455023e6f78fdf55a387c604c6b0114869
treea298b3970c3f3fa2644d30ca08fc20928484c6ba
parente269998d588f8ad96eaf86916e23b8ee3d2b9f1b
ASoC: codecs: msm8916-wcd-analog: add MBHC support

MBHC (MultiButton Headset Control) support is available in pm8921 in two
blocks, one to detect mechanical headset insertion and removal and other
block to support headset type detection and 5 button detection and othe
features like impedance calculation.

This patch adds support to:
1> Support to NC and NO type of headset Jacks.
2> Mechanical insertion and detection of headset jack.
3> Detect a 3 pole Headphone and a 4 pole Headset.
4> Detect 5 buttons.

Tested it on DB410c with Audio Mezz board with 4 pole and 3 pole
headset/headphones.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-analog.txt
sound/soc/codecs/msm8916-wcd-analog.c