[PATCH v2 0/2] ALSA: hda: Fix Acer Nitro 5 AN515-57 mic switching
From: Rithvik Vibhu
Date: Mon Sep 14 2026 - 21:10:23 EST
Hi Takashi,
Thanks for the review :)
I reworked the fix to use gating in jack.c. I believe this is what you
meant, and will fix if not.
Ordinary gating still requires the microphone pin's own presence bit.
On this laptop, pin 0x19 can report both false presence after S3 and false
absence after reinsertion, so gating alone does not cover both failures.
Patch 1 adds an opt-in mode that takes presence entirely from another pin,
using the existing gating relationship for callback propagation.
Patch 2 uses headphone pin 0x21 as the source for headset-mic pin 0x19 on
the Acer Nitro 5 AN515-57 (1025:1539).
Based on sound.git for-linus at:
c9e6e5f38bf75276605f1952b22285f5f3abcaff
Previous submission:
https://lore.kernel.org/r/20260904231545.33505-1-rithvikvibhu@xxxxxxxxx
Thanks,
Rithvik
Rithvik Vibhu (2):
ALSA: hda: Allow jack presence to follow another pin
ALSA: hda/realtek: Fix Acer Nitro 5 AN515-57 mic switching
sound/hda/codecs/realtek/alc269.c | 25 ++++++++++++++++++++++++-
sound/hda/common/hda_jack.h | 4 ++
sound/hda/common/jack.c | 83 ++++++++++++++++++++++++++++++++++++-
3 files changed, 110 insertions(+), 2 deletions(-)