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

From: Cristian Ciocaltea
Date: Fri Oct 03 2025 - 14:04:01 EST


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@xxxxxxxxxxxxx>
---
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