Skip to content

Commit 56fbbe0

Browse files
Zhang Hengtiwai
authored andcommitted
ALSA: hda/realtek: Add quirk for Gigabyte Technology to fix headphone
The BIOS of this machine has set 0x19 to mic, which needs to be set to headphone pin in order to work properly. Link: https://bugzilla.kernel.org/show_bug.cgi?id=220814 Signed-off-by: Zhang Heng <zhangheng@kylinos.cn> Link: https://patch.msgid.link/b55f6ebe-7449-49f7-ae85-00d2ba1e7af0@kylinos.cn Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 1f318b9 commit 56fbbe0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

sound/hda/codecs/realtek/alc662.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ enum {
313313
ALC897_FIXUP_HEADSET_MIC_PIN2,
314314
ALC897_FIXUP_UNIS_H3C_X500S,
315315
ALC897_FIXUP_HEADSET_MIC_PIN3,
316+
ALC897_FIXUP_H610M_HP_PIN,
316317
};
317318

318319
static const struct hda_fixup alc662_fixups[] = {
@@ -766,6 +767,13 @@ static const struct hda_fixup alc662_fixups[] = {
766767
{ }
767768
},
768769
},
770+
[ALC897_FIXUP_H610M_HP_PIN] = {
771+
.type = HDA_FIXUP_PINS,
772+
.v.pins = (const struct hda_pintbl[]) {
773+
{ 0x19, 0x0321403f }, /* HP out */
774+
{ }
775+
},
776+
},
769777
};
770778

771779
static const struct hda_quirk alc662_fixup_tbl[] = {
@@ -815,6 +823,7 @@ static const struct hda_quirk alc662_fixup_tbl[] = {
815823
SND_PCI_QUIRK(0x1043, 0x8469, "ASUS mobo", ALC662_FIXUP_NO_JACK_DETECT),
816824
SND_PCI_QUIRK(0x105b, 0x0cd6, "Foxconn", ALC662_FIXUP_ASUS_MODE2),
817825
SND_PCI_QUIRK(0x144d, 0xc051, "Samsung R720", ALC662_FIXUP_IDEAPAD),
826+
SND_PCI_QUIRK(0x1458, 0xa194, "H610M H V2 DDR4", ALC897_FIXUP_H610M_HP_PIN),
818827
SND_PCI_QUIRK(0x14cd, 0x5003, "USI", ALC662_FIXUP_USI_HEADSET_MODE),
819828
SND_PCI_QUIRK(0x17aa, 0x1036, "Lenovo P520", ALC662_FIXUP_LENOVO_MULTI_CODECS),
820829
SND_PCI_QUIRK(0x17aa, 0x1057, "Lenovo P360", ALC897_FIXUP_HEADSET_MIC_PIN),

0 commit comments

Comments
 (0)