[PATCH] ASoC: rt5682: remove jack detect delay
Curtis Malainey
cujomalainey at google.com
Mon Feb 22 19:59:34 CET 2021
On Mon, Feb 22, 2021 at 5:46 AM Mark Brown <broonie at kernel.org> wrote:
> On Thu, Feb 18, 2021 at 01:06:27PM -0800, Curtis Malainey wrote:
>
> > I am trying to understand the purpose of this delay currently, won't
> > the press already be registered since we have an interrupt? Or does it
> need
> > to stabilize? The reason is 250ms is well within human perception or even
> > double tap time, which results in users possibly double tapping buttons
> but
> > only seeing one press come through.
>
Would a acceptable solution to everyone be
if inserted && buttonAction
respond now
else
run workqueue
>
> It's quite common to have lots of issues with debounce on jacks,
> especially around insert/removal - it looks like this delay covers both
> insert/removal and button presses so it may well be needed for robust
> handling of the actual jack insert.
>
More information about the Alsa-devel
mailing list