From: Liam Girdwood <lrg@slimlogic.co.uk>
To: Jarkko Nikula <jhnikula@gmail.com>
Cc: alsa-devel@alsa-project.org,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Ujfalusi <peter.ujfalusi@nokia.com>,
Peter@alsa-project.org
Subject: Re: [PATCH] ASoC: Use delayed work for debounce of GPIO based jacks
Date: Sun, 10 Oct 2010 11:38:57 +0100 [thread overview]
Message-ID: <1286707137.3429.18.camel@odin> (raw)
In-Reply-To: <20101007085431.879415b7.jhnikula@gmail.com>
On Thu, 2010-10-07 at 08:54 +0300, Jarkko Nikula wrote:
> On Wed, 6 Oct 2010 16:05:01 -0700
> Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:
>
> > Rather than block the workqueue by sleeping to do the debounce use delayed
> > work to implement the debounce time. This should also mean that we extend
> > the debounce time on each new bounce, potentially allowing shorter debounce
> > times for clean insertions.
> >
> > Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> > ---
> >
> > This is completely untested as I do not have any systems to hand which
> > can make use of this functionality but I believe it should work - I've
> > CCed a couple of the OMAP people since they seem to be the main users.
> >
> > include/sound/soc.h | 2 +-
> > sound/soc/soc-jack.c | 11 +++++------
> > 2 files changed, 6 insertions(+), 7 deletions(-)
> >
> Works fine on N900 when testing with
> hexdump /dev/input/by-path/platform-soc-audio-event
>
> I have a vague memory that user space and actual state can get soon out
> of sync if using delay based debouncing only and doing some insane plug
> in/out cycle. So this is a step to right direction for implementing
> more advanced debouncing.
>
> Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
next prev parent reply other threads:[~2010-10-10 10:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-06 23:05 [PATCH] ASoC: Use delayed work for debounce of GPIO based jacks Mark Brown
2010-10-07 5:54 ` Jarkko Nikula
2010-10-10 10:38 ` Liam Girdwood [this message]
2010-10-07 18:13 ` Liam Girdwood
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=1286707137.3429.18.camel@odin \
--to=lrg@slimlogic.co.uk \
--cc=Peter@alsa-project.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=jhnikula@gmail.com \
--cc=peter.ujfalusi@nokia.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