Sound from speakers no sound from 3.5mm jack-audio

I found out that this problem is caused by small changes in the file “patch_realtek.c” in kernel 5.7.10, this change has been applied to all LTS and Stable versions of the kernel. The previous stable update from 2020-07-19 was on version 5.7.9, so with the next update from 2020-08-16, the sound disappeared. It is not clear why these changes broke the audio on the 3.5 jack port. The problem has been seen on ASUS GL703GM, GL703GE, GU502GW, GL503VM and GL503VD notebooks (all from this forum).


I found as many as four ways to solve this problem:

Way one (simple but crooked): paste this line “options snd-hda-intel model=headset-mode” into file “/etc/modprobe.d/alsa.conf” then SHUTDOWN the system, DO NOT reboot. Then turn on the system and the sound should appear, but the microphone in the headphones will probably no longer work.


Way two: install (or compile) kernel 5.7.9. The sound will work as before.


Way three: compile any fresh kernel with this patch. This patch is made for my GL703GM model with ALC295 audio chip, if you have the same audio chip you can change the values ​​"0x1043, 0x1011" according to the values ​​"SubVendor, SubDevice" from the “hwinfo --sound” command.

realtek-gl703gm-5.8.3.patch
--- a/sound/pci/hda/patch_realtek.c	2020-08-24 20:00:05.752727969 +0300
+++ b/sound/pci/hda/patch_realtek.c	2020-08-25 05:28:17.268845951 +0300
@@ -7641,6 +7641,7 @@
 	SND_PCI_QUIRK(0x103c, 0x8736, "HP", ALC285_FIXUP_HP_GPIO_AMP_INIT),
 	SND_PCI_QUIRK(0x103c, 0x877a, "HP", ALC285_FIXUP_HP_MUTE_LED),
 	SND_PCI_QUIRK(0x103c, 0x877d, "HP", ALC236_FIXUP_HP_MUTE_LED),
+	SND_PCI_QUIRK(0x1043, 0x1011, "ASUS GL703GM", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC),
 	SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300),
 	SND_PCI_QUIRK(0x1043, 0x106d, "Asus K53BE", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),

Way four (best): compile any fresh kernel with this patch. This patch undoes the problematic changes in the code and your sound will work as on the 5.7.9 kernel.

realtek-5.8.3.patch
--- a/sound/pci/hda/patch_realtek.c	2020-08-24 20:00:05.752727969 +0300
+++ b/sound/pci/hda/patch_realtek.c	2020-08-24 20:17:14.184536126 +0300
@@ -7132,7 +7132,7 @@
 			{ }
 		},
 		.chained = true,
-		.chain_id = ALC269_FIXUP_HEADSET_MIC
+		.chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC
 	},
 	[ALC294_FIXUP_ASUS_HEADSET_MIC] = {
 		.type = HDA_FIXUP_PINS,
@@ -7141,7 +7141,7 @@
 			{ }
 		},
 		.chained = true,
-		.chain_id = ALC269_FIXUP_HEADSET_MIC
+		.chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC
 	},
 	[ALC294_FIXUP_ASUS_SPK] = {
 		.type = HDA_FIXUP_VERBS,
@@ -7149,8 +7149,6 @@
 			/* Set EAPD high */
 			{ 0x20, AC_VERB_SET_COEF_INDEX, 0x40 },
 			{ 0x20, AC_VERB_SET_PROC_COEF, 0x8800 },
-			{ 0x20, AC_VERB_SET_COEF_INDEX, 0x0f },
-			{ 0x20, AC_VERB_SET_PROC_COEF, 0x7774 },
 			{ }
 		},
 		.chained = true,

Both last patches are made for the kernel version 5.8.3, for other versions the patches need to be adjusted.

6 Likes