Skip to content

ALSA: hda: Fix Acer Nitro 5 AN515-57 mic switching

Rithvik Vibhu linux-sound lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v11 patch 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ALSA: hda: Allow jack presence to follow another pinsound/hda/common/hda_jack.h sound/hda/common/jack.c+86 -10 replies
2/2ALSA: hda/realtek: Fix Acer Nitro 5 AN515-57 mic switchingsound/hda/codecs/realtek/alc269.c+24 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] ALSA: hda: Fix Acer Nitro 5 AN515-57 mic switching

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/[email protected]

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(-)