Skip to content

Commit e959f2b

Browse files
plbossarttiwai
authored andcommitted
ALSA: hda: patch_realtek: add quirk for Asus N7601ZM
Add pins and verbs needed to enable speakers and jack. The pins and verbs configurations were identified by snooping the Windows driver commands, with a nice write-up here: https://brakkee.org/site/2023/02/07/fixing-sound-on-the-asus-n7601zm/ Reported-by: Erik Brakkee <erik@brakkee.org> Link: thesofproject#4176 Tested-by: Erik Brakkee <erik@brakkee.org> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20230406152725.15191-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent fb4a624 commit e959f2b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6960,6 +6960,8 @@ enum {
69606960
ALC269_FIXUP_DELL_M101Z,
69616961
ALC269_FIXUP_SKU_IGNORE,
69626962
ALC269_FIXUP_ASUS_G73JW,
6963+
ALC269_FIXUP_ASUS_N7601ZM_PINS,
6964+
ALC269_FIXUP_ASUS_N7601ZM,
69636965
ALC269_FIXUP_LENOVO_EAPD,
69646966
ALC275_FIXUP_SONY_HWEQ,
69656967
ALC275_FIXUP_SONY_DISABLE_AAMIX,
@@ -7256,6 +7258,29 @@ static const struct hda_fixup alc269_fixups[] = {
72567258
{ }
72577259
}
72587260
},
7261+
[ALC269_FIXUP_ASUS_N7601ZM_PINS] = {
7262+
.type = HDA_FIXUP_PINS,
7263+
.v.pins = (const struct hda_pintbl[]) {
7264+
{ 0x19, 0x03A11050 },
7265+
{ 0x1a, 0x03A11C30 },
7266+
{ 0x21, 0x03211420 },
7267+
{ }
7268+
}
7269+
},
7270+
[ALC269_FIXUP_ASUS_N7601ZM] = {
7271+
.type = HDA_FIXUP_VERBS,
7272+
.v.verbs = (const struct hda_verb[]) {
7273+
{0x20, AC_VERB_SET_COEF_INDEX, 0x62},
7274+
{0x20, AC_VERB_SET_PROC_COEF, 0xa007},
7275+
{0x20, AC_VERB_SET_COEF_INDEX, 0x10},
7276+
{0x20, AC_VERB_SET_PROC_COEF, 0x8420},
7277+
{0x20, AC_VERB_SET_COEF_INDEX, 0x0f},
7278+
{0x20, AC_VERB_SET_PROC_COEF, 0x7774},
7279+
{ }
7280+
},
7281+
.chained = true,
7282+
.chain_id = ALC269_FIXUP_ASUS_N7601ZM_PINS,
7283+
},
72597284
[ALC269_FIXUP_LENOVO_EAPD] = {
72607285
.type = HDA_FIXUP_VERBS,
72617286
.v.verbs = (const struct hda_verb[]) {
@@ -9466,6 +9491,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
94669491
SND_PCI_QUIRK(0x1043, 0x1271, "ASUS X430UN", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
94679492
SND_PCI_QUIRK(0x1043, 0x1290, "ASUS X441SA", ALC233_FIXUP_EAPD_COEF_AND_MIC_NO_PRESENCE),
94689493
SND_PCI_QUIRK(0x1043, 0x12a0, "ASUS X441UV", ALC233_FIXUP_EAPD_COEF_AND_MIC_NO_PRESENCE),
9494+
SND_PCI_QUIRK(0x1043, 0x12a3, "Asus N7691ZM", ALC269_FIXUP_ASUS_N7601ZM),
94699495
SND_PCI_QUIRK(0x1043, 0x12af, "ASUS UX582ZS", ALC245_FIXUP_CS35L41_SPI_2),
94709496
SND_PCI_QUIRK(0x1043, 0x12e0, "ASUS X541SA", ALC256_FIXUP_ASUS_MIC),
94719497
SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC),

0 commit comments

Comments
 (0)