Spurious headphone detection interrupts
#31
I'm sorry for the delay; I finally had an opportunity to test this.

I don't see multiple interrupts during audio playback, nor during start nor stop, without plugging anything in.

However, I do see anywhere from 1 to 11 interrupts upon plugging in headphones (or in this case unpowered speakers today). This is of course only during audio playback. But the ISR always gets it right: I never have a situation where audio is playing out the wrong speakers. (I do have at least one Android phone which does this upon multiple rapid plug/unplug events).

So clearly the audio being the source of the interrupt logic level is defeating the debounce. But what I found odd is that I cannot get multiple interrupts upon unplugging the headphones. Only when plugging them in. Unplugging generates exactly one no matter how much I try to bugger it.

I should also add that I'm still not seeing any spurious interrupts without headphone jack activity such as you are seeing.
  Reply


Messages In This Thread
RE: Spurious headphone detection interrupts - by KC9UDX - 01-17-2021, 07:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Microphone in through headphone jack SageFox 1 4,329 03-26-2020, 12:27 PM
Last Post: zaius

Forum Jump:


Users browsing this thread: 8 Guest(s)