[PATCH] ALSA: hda/realtek: Fix headset mic and buttons on Acer Predator PT315-53

From: Ivan Novikov via B4 Relay

Date: Thu Dec 03 2026 - 23:28:05 EST


From: Ivan Novikov <ivan@xxxxxxxxxx>

The Acer Predator Triton 300 PT315-53 (ALC295, SSID 1025:1540) leaves
the combo jack mic pin (0x19) unconfigured in the BIOS, so a TRRS
headset plugged into the combo jack has no working microphone.

Configuring 0x19 as a headset mic is not enough on its own: the pin's
presence detect only reports a plugged mic once the jack has been put
into headset mode, and the driver switches the jack to headset mode
only while the headset mic is the selected input. With auto-mic
enabled the internal mic therefore always wins and the jack stays in
headphone mode, which records nothing but noise.

Expose 0x19 as an always-present headset mic, disable auto-mic so the
input is chosen by the user (selecting the headset mic switches the
jack mode and runs the CTIA/OMTP detection), and enable the headset
key detection so the inline volume buttons work.

Tested with a 4-pole CTIA IEM headset: the mic records with headset
mode active, volume up/down keys are reported, and the internal mic
keeps working when selected.

Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Ivan Novikov <ivan@xxxxxxxxxx>
---
ALC2XX_FIXUP_HEADSET_MIC, used for several Acer Nitro models with the
same codec, is not enough on this machine: it configures the pin but
never switches the combo jack into headset mode, so the mic records
only noise. The new fixup follows alc287_fixup_legion_16iax10h_aw88399(),
which combines alc_fixup_headset_mode_no_hp_mic(), alc_fixup_headset_jack()
and suppress_auto_mic in the same way.
---
sound/hda/codecs/realtek/alc269.c | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index a4b433387..30c09842d 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -3993,6 +3993,30 @@ static void alc2xx_fixup_headset_mic(struct hda_codec *codec,
}
}

+/*
+ * Acer Predator PT315-53: the BIOS leaves the combo jack mic (0x19) unconfigured.
+ * Its presence detect only works once the jack is switched to headset mode, which
+ * the driver does only while the headset mic is the selected input, so auto-mic can
+ * never pick it. Expose it as an always-present headset mic with manual input
+ * selection (selecting it switches the jack mode), and enable the inline buttons.
+ */
+static void alc295_fixup_acer_headset_jack(struct hda_codec *codec,
+ const struct hda_fixup *fix, int action)
+{
+ struct alc_spec *spec = codec->spec;
+ static const struct hda_pintbl pincfgs[] = {
+ { 0x19, 0x03a1113c }, /* headset mic, no presence detect */
+ { }
+ };
+
+ if (action == HDA_FIXUP_ACT_PRE_PROBE) {
+ snd_hda_apply_pincfgs(codec, pincfgs);
+ spec->gen.suppress_auto_mic = 1;
+ }
+ alc_fixup_headset_mode_no_hp_mic(codec, fix, action);
+ alc_fixup_headset_jack(codec, fix, action);
+}
+
static void alc245_fixup_hp_spectre_x360_eu0xxx(struct hda_codec *codec,
const struct hda_fixup *fix, int action)
{
@@ -4608,6 +4632,7 @@ enum {
ALC287_FIXUP_CS35L41_I2C_4_THINKPAD_ACPI,
ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_4_THINKPAD,
ALC2XX_FIXUP_HEADSET_MIC,
+ ALC295_FIXUP_ACER_HEADSET_JACK,
ALC289_FIXUP_DELL_CS35L41_SPI_2,
ALC256_FIXUP_ACER_SFG16_MICMUTE_LED,
ALC256_FIXUP_ACER_HEADSET_MICMUTE_LED,
@@ -7288,6 +7313,10 @@ static const struct hda_fixup alc269_fixups[] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc2xx_fixup_headset_mic,
},
+ [ALC295_FIXUP_ACER_HEADSET_JACK] = {
+ .type = HDA_FIXUP_FUNC,
+ .v.func = alc295_fixup_acer_headset_jack,
+ },
[ALC289_FIXUP_DELL_CS35L41_SPI_2] = {
.type = HDA_FIXUP_FUNC,
.v.func = cs35l41_fixup_spi_two,
@@ -7661,6 +7690,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x1025, 0x151e, "Acer Nitro AN515-45", ALC2XX_FIXUP_HEADSET_MIC),
SND_PCI_QUIRK(0x1025, 0x1534, "Acer Predator PH315-54", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1025, 0x1539, "Acer Nitro 5 AN515-57", ALC2XX_FIXUP_HEADSET_MIC),
+ SND_PCI_QUIRK(0x1025, 0x1540, "Acer Predator PT315-53", ALC295_FIXUP_ACER_HEADSET_JACK),
SND_PCI_QUIRK(0x1025, 0x159c, "Acer Nitro 5 AN515-58", ALC287_FIXUP_ACER_MICMUTE_LED),
SND_PCI_QUIRK(0x1025, 0x1597, "Acer Nitro 5 AN517-55", ALC2XX_FIXUP_HEADSET_MIC),
SND_PCI_QUIRK(0x1025, 0x159e, "Acer Nitro 5 AN515-46", ALC2XX_FIXUP_HEADSET_MIC),
@@ -9136,6 +9166,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
{.id = ALC285_FIXUP_HP_GPIO_AMP_INIT, .name = "alc285-hp-amp-init"},
{.id = ALC236_FIXUP_LENOVO_INV_DMIC, .name = "alc236-fixup-lenovo-inv-mic"},
{.id = ALC2XX_FIXUP_HEADSET_MIC, .name = "alc2xx-fixup-headset-mic"},
+ {.id = ALC295_FIXUP_ACER_HEADSET_JACK, .name = "alc295-acer-headset-jack"},
{.id = ALC245_FIXUP_BASS_HP_DAC, .name = "alc245-fixup-bass-hp-dac"},
{.id = ALC256_FIXUP_HONOR_MRB_XXX_M1020_AUDIO, .name = "alc256-honor-mrb-xxx-m1020-audio"},
{.id = ALC287_FIXUP_LENOVO_LEGION_AW88399, .name = "alc287-lenovo-legion-aw88399"},

---
base-commit: 9cef9067672e1bdd71b397264d03515ffed099f7
change-id: 20261204-acer-pt315-headset-37ad241b08ef

Best regards,
--
Ivan Novikov <ivan@xxxxxxxxxx>