[PATCH 0/5] ASoC: nau8821: Fix IRQ handling and improve jack detection on Steam Deck

Cristian Ciocaltea posted 5 patches 2 months, 2 weeks ago
sound/soc/codecs/nau8821.c | 129 ++++++++++++++++++++++++++++-----------------
sound/soc/codecs/nau8821.h |   2 +-
2 files changed, 81 insertions(+), 50 deletions(-)
[PATCH 0/5] ASoC: nau8821: Fix IRQ handling and improve jack detection on Steam Deck
Posted by Cristian Ciocaltea 2 months, 2 weeks ago
This patch series addresses a set of issues in the Nuvoton NAU88L21
audio codec driver related to interrupt handling and jack hotplug
detection reliability.

The changes focus on:

* Eliminating race conditions between jack insertion and ejection events
* Ensuring interrupts are consistently and correctly cleared before
  unmasking
* Introducing a DMI-based quirk to bypass the jack debounce circuit on
  Valve Steam Deck, improving detection accuracy under stress
* Improving robustness of the IRQ handler by avoiding unnecessary
  blocking operations

The series has been tested on affected hardware to verify correct
behavior during repeated and rapid jack hotplug cycles.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
Cristian Ciocaltea (5):
      ASoC: nau8821: Cancel jdet_work before handling jack ejection
      ASoC: nau8821: Generalize helper to clear IRQ status
      ASoC: nau8821: Consistently clear interrupts before unmasking
      ASoC: nau8821: Add DMI quirk to bypass jack debounce circuit
      ASoC: nau8821: Avoid unnecessary blocking in IRQ handler

 sound/soc/codecs/nau8821.c | 129 ++++++++++++++++++++++++++++-----------------
 sound/soc/codecs/nau8821.h |   2 +-
 2 files changed, 81 insertions(+), 50 deletions(-)
---
base-commit: 47a8d4b89844f5974f634b4189a39d5ccbacd81c
change-id: 20251003-nau8821-jdet-fixes-f7a36f4ca098
Re: [PATCH 0/5] ASoC: nau8821: Fix IRQ handling and improve jack detection on Steam Deck
Posted by Mark Brown 2 months ago
On Fri, 03 Oct 2025 21:03:22 +0300, Cristian Ciocaltea wrote:
> This patch series addresses a set of issues in the Nuvoton NAU88L21
> audio codec driver related to interrupt handling and jack hotplug
> detection reliability.
> 
> The changes focus on:
> 
> * Eliminating race conditions between jack insertion and ejection events
> * Ensuring interrupts are consistently and correctly cleared before
>   unmasking
> * Introducing a DMI-based quirk to bypass the jack debounce circuit on
>   Valve Steam Deck, improving detection accuracy under stress
> * Improving robustness of the IRQ handler by avoiding unnecessary
>   blocking operations
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/5] ASoC: nau8821: Cancel jdet_work before handling jack ejection
      commit: 6e54919cb541fdf1063b16f3254c28d01bc9e5ff
[2/5] ASoC: nau8821: Generalize helper to clear IRQ status
      commit: 9273aa85b35cc02d0953a1ba3b7bd694e5a2c10e
[3/5] ASoC: nau8821: Consistently clear interrupts before unmasking
      commit: a698679fe8b0fec41d1fb9547a53127a85c1be92
[4/5] ASoC: nau8821: Add DMI quirk to bypass jack debounce circuit
      commit: 2b4eda7bf7d8a4e2f7575a98f55d8336dec0f302
[5/5] ASoC: nau8821: Avoid unnecessary blocking in IRQ handler
      commit: ee70bacef1c6050e4836409927294d744dbcfa72

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark