ALSA: hda/realtek: Fix speaker output on ASUS ROG Strix G512
Quoted 14 lines · Rob Hermann
The ASUS ROG Strix G512LW (subsystem ID
0x10431f21) with ALC294 codec has no speaker output on Linux. The internal speaker amplifier requires specific codec coefficient writes that differ from the existingALC294_FIXUP_ASUS_SPKquirk values.The required coefficients were identified by comparing codec register dumps with and without working speaker output:
- Coefficient index0x0fneeds value0x7778(vs0x7774in existing quirk)
- Coefficient index0x40needs value0x0800(vs0x8800in existing quirk)Without this patch, speakers are completely silent. Headphones and HDMI audio work correctly.
Quoted 7 lines
This affects at least the following models:
- ASUS ROG Strix G512LW (i7-10750H, RTX 2070)
- ASUS ROG Strix G512LV (reported on Fedora forums)
Could you resubmit to [email protected]? That's the right ML for a kernel patch. alsa-devel ML is mainly for user-space stuff.
thanks,
Takashi
PATCH 1/1 ALSA: hda/realtek: Fix speaker output on ASUS ROG Strix G512
The ASUS ROG Strix G512LW (subsystem ID 0x10431f21) with ALC294 codec has no speaker output on Linux. The internal speaker amplifier requires specific codec coefficient writes that differ from the existing ALC294_FIXUP_ASUS_SPK quirk values.
The required coefficients were identified by comparing codec register dumps with and without working speaker output:
- Coefficient index 0x0f needs value 0x7778 (vs 0x7774 in existing quirk)
- Coefficient index 0x40 needs value 0x0800 (vs 0x8800 in existing quirk)
Without this patch, speakers are completely silent. Headphones and HDMI audio work correctly.
This affects at least the following models:
- ASUS ROG Strix G512LW (i7-10750H, RTX 2070)
- ASUS ROG Strix G512LV (reported on Fedora forums)
--- sound/pci/hda/patch_realtek.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
sound/pci/hda/patch_realtek.c +15 -0
@@ -7859,6 +7859,7 @@ enum {ALC294_FIXUP_ASUS_MIC ,ALC294_FIXUP_ASUS_HEADSET_MIC ,ALC294_FIXUP_ASUS_SPK , +ALC294_FIXUP_ASUS_G512_SPK ,ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE ,ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE , ALC255_FIXUP_ACER_HEADSET_MIC,
@@ -9166,6 +9167,19 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id =ALC294_FIXUP_ASUS_HEADSET_MIC }, + [ALC294_FIXUP_ASUS_G512_SPK] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb []) { +/* Enable speaker amp on ASUS ROG Strix G512 */ + {0x20 ,AC_VERB_SET_COEF_INDEX ,0x0f }, + {0x20 ,AC_VERB_SET_PROC_COEF ,0x7778 }, + {0x20 ,AC_VERB_SET_COEF_INDEX ,0x40 }, + {0x20 ,AC_VERB_SET_PROC_COEF ,0x0800 }, + { } + }, + .chained = true, + .chain_id =ALC294_FIXUP_ASUS_HEADSET_MIC + }, [ALC295_FIXUP_CHROME_BOOK] = { .type = HDA_FIXUP_FUNC, .v.func = alc295_fixup_chromebook,
@@ -10977,6 +10991,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x1043 ,0x1f11 ,"ASUS Zephyrus G14" ,ALC289_FIXUP_ASUS_GA401 ),SND_PCI_QUIRK (0x1043 ,0x1f12 ,"ASUS UM5302" ,ALC287_FIXUP_CS35L41_I2C_2 ),SND_PCI_QUIRK (0x1043 ,0x1f1f ,"ASUS H7604JI/JV/J3D" ,ALC245_FIXUP_CS35L41_SPI_2 ), +SND_PCI_QUIRK (0x1043 ,0x1f21 ,"ASUS ROG Strix G512" ,ALC294_FIXUP_ASUS_G512_SPK ),SND_PCI_QUIRK (0x1043 ,0x1f62 ,"ASUS UX7602ZM" ,ALC245_FIXUP_CS35L41_SPI_2 ),SND_PCI_QUIRK (0x1043 ,0x1f92 ,"ASUS ROG Flow X16" ,ALC289_FIXUP_ASUS_GA401 ), SND_PCI_QUIRK(0x1043, 0x3030, "ASUS ZN270IE", ALC256_FIXUP_ASUS_AIO_GPIO2),
--
2.47.0