Re: [PATCH] ASoC: rt5682: remove jack detect delay

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 22, 2021 at 5:46 AM Mark Brown <broonie@xxxxxxxxxx> 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.
>



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux