Skip to content

Commit 1b452c2

Browse files
kovalev0tiwai
authored andcommitted
ALSA: hda/realtek - Add support for ASUS Zen AIO 27 Z272SD_A272SD audio
Introduces necessary quirks to enable audio functionality on the ASUS Zen AIO 27 Z272SD_A272SD: - configures verbs to activate internal speakers and headphone jack. - implements adjustments for headset microphone functionality. The speaker and jack configurations were derived from a dump of the working Windows driver, while the headset microphone functionality was fine-tuned through experimental testing. Link: https://lore.kernel.org/all/CAGGMHBOGDUnMewBTrZgoBKFk_A4sNF4fEXwfH9Ay8SNTzjy0-g@mail.gmail.com/T/ Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org> Link: https://patch.msgid.link/20241205210306.977634-1-kovalev@altlinux.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 5a69e3d commit 1b452c2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7714,6 +7714,7 @@ enum {
77147714
ALC274_FIXUP_HP_MIC,
77157715
ALC274_FIXUP_HP_HEADSET_MIC,
77167716
ALC274_FIXUP_HP_ENVY_GPIO,
7717+
ALC274_FIXUP_ASUS_ZEN_AIO_27,
77177718
ALC256_FIXUP_ASUS_HPE,
77187719
ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK,
77197720
ALC287_FIXUP_HP_GPIO_LED,
@@ -9516,6 +9517,26 @@ static const struct hda_fixup alc269_fixups[] = {
95169517
.type = HDA_FIXUP_FUNC,
95179518
.v.func = alc274_fixup_hp_envy_gpio,
95189519
},
9520+
[ALC274_FIXUP_ASUS_ZEN_AIO_27] = {
9521+
.type = HDA_FIXUP_VERBS,
9522+
.v.verbs = (const struct hda_verb[]) {
9523+
{ 0x20, AC_VERB_SET_COEF_INDEX, 0x10 },
9524+
{ 0x20, AC_VERB_SET_PROC_COEF, 0xc420 },
9525+
{ 0x20, AC_VERB_SET_COEF_INDEX, 0x40 },
9526+
{ 0x20, AC_VERB_SET_PROC_COEF, 0x8800 },
9527+
{ 0x20, AC_VERB_SET_COEF_INDEX, 0x49 },
9528+
{ 0x20, AC_VERB_SET_PROC_COEF, 0x0249 },
9529+
{ 0x20, AC_VERB_SET_COEF_INDEX, 0x4a },
9530+
{ 0x20, AC_VERB_SET_PROC_COEF, 0x202b },
9531+
{ 0x20, AC_VERB_SET_COEF_INDEX, 0x62 },
9532+
{ 0x20, AC_VERB_SET_PROC_COEF, 0xa007 },
9533+
{ 0x20, AC_VERB_SET_COEF_INDEX, 0x6b },
9534+
{ 0x20, AC_VERB_SET_PROC_COEF, 0x5060 },
9535+
{}
9536+
},
9537+
.chained = true,
9538+
.chain_id = ALC2XX_FIXUP_HEADSET_MIC,
9539+
},
95199540
[ALC256_FIXUP_ASUS_HPE] = {
95209541
.type = HDA_FIXUP_VERBS,
95219542
.v.verbs = (const struct hda_verb[]) {
@@ -10631,6 +10652,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
1063110652
SND_PCI_QUIRK(0x1043, 0x1f62, "ASUS UX7602ZM", ALC245_FIXUP_CS35L41_SPI_2),
1063210653
SND_PCI_QUIRK(0x1043, 0x1f92, "ASUS ROG Flow X16", ALC289_FIXUP_ASUS_GA401),
1063310654
SND_PCI_QUIRK(0x1043, 0x3030, "ASUS ZN270IE", ALC256_FIXUP_ASUS_AIO_GPIO2),
10655+
SND_PCI_QUIRK(0x1043, 0x31d0, "ASUS Zen AIO 27 Z272SD_A272SD", ALC274_FIXUP_ASUS_ZEN_AIO_27),
1063410656
SND_PCI_QUIRK(0x1043, 0x3a20, "ASUS G614JZR", ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS),
1063510657
SND_PCI_QUIRK(0x1043, 0x3a30, "ASUS G814JVR/JIR", ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS),
1063610658
SND_PCI_QUIRK(0x1043, 0x3a40, "ASUS G814JZR", ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS),

0 commit comments

Comments
 (0)