Skip to contentSkip to conversation

ALSA: hda/realtek: Fix quiet 3.5mm jacks on Beelink SER6

PATCH Superseded Brian Koebbe 2 participants 2 messages Aug 10 Sound

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda/realtek: Fix quiet 3.5mm jacks on Beelink SER6

Both the front headphone jack and the rear line-out jack play back at a barely audible volume on the Beelink SER6 Max (ALC897, PCI subsystem ID 1f66:0202), even with all mixer controls at 0dB. GPIO2 on the codec gates an external headphone/line amplifier that the generic parser never enables. Add a fixup that asserts it. Verified fixed on both jacks.

---
 sound/hda/codecs/realtek/alc662.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
sound/hda/codecs/realtek/alc662.c +10 -0
index 2cf3664a35ff..2ce1b171337d 100644
@@ -324,6 +324,7 @@ enum {
 	ALC897_FIXUP_HEADSET_MIC_PIN2,
 	ALC897_FIXUP_UNIS_H3C_X500S,
 	ALC897_FIXUP_HEADSET_MIC_PIN3,
+	ALC897_FIXUP_BEELINK_SER6_AMP,
 	ALC662_FIXUP_CSL_GPIO,
 };
 
@@ -778,6 +779,14 @@ static const struct hda_fixup alc662_fixups[] = {
 			{ }
 		},
 	},
+	[ALC897_FIXUP_BEELINK_SER6_AMP] = {
+		/* Beelink SER6 Max (Ryzen 6900HX) both 3.5mm jacks are very
+		 * quiet without this: GPIO2 gates an external headphone/line
+		 * amplifier that the generic parser never enables.
+		 */
+		.type = HDA_FIXUP_FUNC,
+		.v.func = alc_fixup_gpio4,
+	},
 	[ALC662_FIXUP_CSL_GPIO] = {
 		.type = HDA_FIXUP_FUNC,
 		.v.func = alc662_fixup_csl_amp,
@@ -788,6 +797,7 @@ static const struct hda_quirk alc662_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1019, 0x9087, "ECS", ALC662_FIXUP_ASUS_MODE2),
 	SND_PCI_QUIRK(0x1019, 0x9859, "JP-IK LEAP W502", ALC897_FIXUP_HEADSET_MIC_PIN3),
 	SND_PCI_QUIRK(0x1022, 0xc950, "CSL Unity BF24B", ALC662_FIXUP_CSL_GPIO),
+	SND_PCI_QUIRK(0x1f66, 0x0202, "Beelink SER6 Max 6900", ALC897_FIXUP_BEELINK_SER6_AMP),
 	SND_PCI_QUIRK(0x1025, 0x022f, "Acer Aspire One", ALC662_FIXUP_INV_DMIC),
 	SND_PCI_QUIRK(0x1025, 0x0241, "Packard Bell DOTS", ALC662_FIXUP_INV_DMIC),
 	SND_PCI_QUIRK(0x1025, 0x0308, "Acer Aspire 8942G", ALC662_FIXUP_ASPIRE),
Signature · 1 line
2.55.0
#1 lore raw
Quoted 41 lines · Brian Koebbe

Both the front headphone jack and the rear line-out jack play back at a barely audible volume on the Beelink SER6 Max (ALC897, PCI subsystem ID 1f66:0202), even with all mixer controls at 0dB. GPIO2 on the codec gates an external headphone/line amplifier that the generic parser never enables. Add a fixup that asserts it. Verified fixed on both jacks.

---
 sound/hda/codecs/realtek/alc662.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
sound/hda/codecs/realtek/alc662.c +9 -0
index 2cf3664a35ff..2ce1b171337d 100644
@@ -324,6 +324,7 @@ enum {
 	ALC897_FIXUP_HEADSET_MIC_PIN2,
 	ALC897_FIXUP_UNIS_H3C_X500S,
 	ALC897_FIXUP_HEADSET_MIC_PIN3,
+	ALC897_FIXUP_BEELINK_SER6_AMP,
 	ALC662_FIXUP_CSL_GPIO,
 };
 
@@ -778,6 +779,14 @@ static const struct hda_fixup alc662_fixups[] = {
 			{ }
 		},
 	},
+	[ALC897_FIXUP_BEELINK_SER6_AMP] = {
+		/* Beelink SER6 Max (Ryzen 6900HX) both 3.5mm jacks are very
+		 * quiet without this: GPIO2 gates an external headphone/line
+		 * amplifier that the generic parser never enables.
+		 */
+		.type = HDA_FIXUP_FUNC,
+		.v.func = alc_fixup_gpio4,
+	},
 	[ALC662_FIXUP_CSL_GPIO] = {
 		.type = HDA_FIXUP_FUNC,
 		.v.func = alc662_fixup_csl_amp,

sound/hda/codecs/realtek/alc662.c static const struct hda_quirk alc662_fixup_tbl[] = { · line 803

Quoted 7 lines
sound/hda/codecs/realtek/alc662.c +1 -0
@@ -788,6 +797,7 @@ static const struct hda_quirk alc662_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1019, 0x9087, "ECS", ALC662_FIXUP_ASUS_MODE2),
 	SND_PCI_QUIRK(0x1019, 0x9859, "JP-IK LEAP W502", ALC897_FIXUP_HEADSET_MIC_PIN3),
 	SND_PCI_QUIRK(0x1022, 0xc950, "CSL Unity BF24B", ALC662_FIXUP_CSL_GPIO),
+	SND_PCI_QUIRK(0x1f66, 0x0202, "Beelink SER6 Max 6900", ALC897_FIXUP_BEELINK_SER6_AMP),
 	SND_PCI_QUIRK(0x1025, 0x022f, "Acer Aspire One", ALC662_FIXUP_INV_DMIC),
 	SND_PCI_QUIRK(0x1025, 0x0241, "Packard Bell DOTS", ALC662_FIXUP_INV_DMIC),
 	SND_PCI_QUIRK(0x1025, 0x0308, "Acer Aspire 8942G", ALC662_FIXUP_ASPIRE),

The table is sorted in PCI SSID order. Could you try to put the new entry at the right position, and resubmit the corrected patch?

thanks,

Takashi