From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Damien Riegel <damien.riegel@savoirfairelinux.com>
Cc: Mark Brown <broonie@kernel.org>,
Banajit Goswami <bgoswami@codeaurora.org>,
alsa-devel@alsa-project.org, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>, Patrick Lai <plai@codeaurora.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 3/5] ASoC: codecs: msm8916-wcd-analog: add MBHC support
Date: Thu, 10 Aug 2017 11:02:34 +0100 [thread overview]
Message-ID: <76eb6edf-1754-6679-6218-028b12dce49a@linaro.org> (raw)
In-Reply-To: <20170809211054.4owecfeoxxud5evh@workotop.localdomain>
Hi Damien,
Thanks for testing.
On 09/08/17 22:10, Damien Riegel wrote:
> Hi Srinivas,
>
> On Wed, Aug 09, 2017 at 06:49:25PM +0200, srinivas.kandagatla@linaro.org wrote:
>> From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
>>
>> 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.
>
> I have the same issue with this patchset, KEY_MEDIA is being reported
> when unplugging a headset. I added a few traces and what I observe is
Am unable to reproduce the same issue, I tried atleast 6 different mix
of headset/headphones.
here is my evtest log: http://paste.ubuntu.com/25282592/
Could you explain bit more about your setup, so that I can try to
reproduce the same issue.
My setup is DB410c + Audio Mezz board
https://www.arrow.com/en/products/audiomezz/seeed-technology-limited
> that the "button pressed" irq is fired when unplugging, but no "button
> released" irq follows. To get a "button released" irq, I need to either
> plug a headset, or plug-and-unplug headphones.
>
> So basically, detection fails because we don't get the "button pressed"
> irq prior to the mechanical switch irq. Do you know what could explain
> the MBHC not firing the "button released" irq when unplugging headset?
>
Can you also share output of evetest and /proc/interrupts so that i can
see if the extra logic of masking btn0 is creating the issue, we can
also try removing the btn0 accessory detect logic and see if we get
correct button press/releases.
thanks,
srini
>
> Thanks,
>
next prev parent reply other threads:[~2017-08-10 10:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76eb6edf-1754-6679-6218-028b12dce49a@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=bgoswami@codeaurora.org \
--cc=broonie@kernel.org \
--cc=damien.riegel@savoirfairelinux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=plai@codeaurora.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®