mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/5] ASoC: codecs: msm8916-wcd-analog: Add support to MBHC
@ 2017-08-09 16:49 srinivas.kandagatla
  2017-08-09 16:49 ` [PATCH v3 1/5] ASoC: codecs: msm8916-wcd-analog: move codec reset to probe srinivas.kandagatla
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: srinivas.kandagatla @ 2017-08-09 16:49 UTC (permalink / raw)
  To: Mark Brown, Banajit Goswami, alsa-devel
  Cc: damien.riegel, Jaroslav Kysela, Takashi Iwai, Patrick Lai,
	linux-kernel, Srinivas Kandagatla

From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

This patchset adds support to MBHC(Multibutton headset control) block in PM8916
analog block. MBHC support comes from 2 blocks first mechanical headset detection
and second headset type, 5 button detection.

This patchset 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.

Damien sent a similar patchset to add support to mechanical detection,
but that patch has issues and will not work on most usecases (for example
after a playback/capture session, multicodec case). So I only picked up
the BIT mask patch from that series.

Tested it on DB410c with Audio Mezz board with 4 pole and 3 pole
and during playback and recording use cases.

Changes since v2(https://lkml.org/lkml/2017/8/2/609):
	- cleaned up code spotted by Damien
	- dropped fix snd_soc_codec_set_jack return error as it alredy applied

Srinivas Kandagatla (5):
  ASoC: codecs: msm8916-wcd-analog: move codec reset to probe
  ASoC: codecs: msm8916-wcd-analog: get micbias voltage from dt
  ASoC: codecs: msm8916-wcd-analog: add MBHC support
  ASoC: qcom: apq8016-sbc: Add support to Headset JACK
  arm64: dts: apq8016-sbc: add mbhc buttons support

 .../bindings/sound/qcom,msm8916-wcd-analog.txt     |  18 +-
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi          |   2 +
 sound/soc/codecs/msm8916-wcd-analog.c              | 407 +++++++++++++++++++--
 sound/soc/qcom/apq8016_sbc.c                       |  34 ++
 4 files changed, 437 insertions(+), 24 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-08-17 10:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-09 16:49 [PATCH v3 0/5] ASoC: codecs: msm8916-wcd-analog: Add support to MBHC srinivas.kandagatla
2017-08-09 16:49 ` [PATCH v3 1/5] ASoC: codecs: msm8916-wcd-analog: move codec reset to probe srinivas.kandagatla
2017-08-09 16:49 ` [PATCH v3 2/5] ASoC: codecs: msm8916-wcd-analog: get micbias voltage from dt srinivas.kandagatla
2017-08-10 15:24   ` Mark Brown
2017-08-11 15:15     ` Srinivas Kandagatla
2017-08-09 16:49 ` [PATCH v3 3/5] ASoC: codecs: msm8916-wcd-analog: add MBHC support srinivas.kandagatla
2017-08-09 21:10   ` Damien Riegel
2017-08-10 10:02     ` Srinivas Kandagatla
2017-08-10 13:33       ` Damien Riegel
2017-08-14 14:12         ` [alsa-devel] " Damien Riegel
2017-08-14 16:34           ` Srinivas Kandagatla
2017-08-16 17:48             ` Damien Riegel
2017-08-17 10:15               ` Srinivas Kandagatla
2017-08-09 16:49 ` [PATCH v3 4/5] ASoC: qcom: apq8016-sbc: Add support to Headset JACK srinivas.kandagatla
2017-08-09 16:49 ` [PATCH v3 5/5] arm64: dts: apq8016-sbc: add mbhc buttons support srinivas.kandagatla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®