]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: nau8821: Add DMI quirk to bypass jack debounce circuit
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Fri, 3 Oct 2025 18:03:26 +0000 (21:03 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 13 Oct 2025 12:18:01 +0000 (13:18 +0100)
commit2b4eda7bf7d8a4e2f7575a98f55d8336dec0f302
tree8241540439b221ed41be8015b1aea588adb6d4a7
parenta698679fe8b0fec41d1fb9547a53127a85c1be92
ASoC: nau8821: Add DMI quirk to bypass jack debounce circuit

Stress testing the audio jack hotplug handling on a few Steam Deck units
revealed that the debounce circuit is responsible for having a negative
impact on the detection reliability, e.g. in some cases the ejection
interrupt is not fired, while in other instances it goes into a kind of
invalid state and generates a flood of misleading interrupts.

Add new entries to the DMI table introduced via commit 1bc40efdaf4a
("ASoC: nau8821: Add DMI quirk mechanism for active-high jack-detect")
and extend the quirk logic to allow bypassing the debounce circuit used
for jack detection on Valve Steam Deck LCD and OLED models.

While at it, rename existing NAU8821_JD_ACTIVE_HIGH quirk bitfield to
NAU8821_QUIRK_JD_ACTIVE_HIGH.  This should help improve code readability
by differentiating from similarly named register bits.

Fixes: aab1ad11d69f ("ASoC: nau8821: new driver")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://patch.msgid.link/20251003-nau8821-jdet-fixes-v1-4-f7b0e2543f09@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8821.c