Skip to content

Commit 4ba5c85

Browse files
imtangmengtiwai
authored andcommitted
ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc221
On a HP 288 Pro G2 MT (X9W02AV), the front mic could not be detected. In order to get it working, the pin configuration needs to be set correctly, and the ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE fixup needs to be applied. Signed-off-by: Meng Tang <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 61d3078 commit 4ba5c85

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6901,6 +6901,7 @@ enum {
69016901
ALC298_FIXUP_LENOVO_SPK_VOLUME,
69026902
ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER,
69036903
ALC269_FIXUP_ATIV_BOOK_8,
6904+
ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE,
69046905
ALC221_FIXUP_HP_MIC_NO_PRESENCE,
69056906
ALC256_FIXUP_ASUS_HEADSET_MODE,
69066907
ALC256_FIXUP_ASUS_MIC,
@@ -7837,6 +7838,16 @@ static const struct hda_fixup alc269_fixups[] = {
78377838
.chained = true,
78387839
.chain_id = ALC269_FIXUP_NO_SHUTUP
78397840
},
7841+
[ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE] = {
7842+
.type = HDA_FIXUP_PINS,
7843+
.v.pins = (const struct hda_pintbl[]) {
7844+
{ 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
7845+
{ 0x1a, 0x01813030 }, /* use as headphone mic, without its own jack detect */
7846+
{ }
7847+
},
7848+
.chained = true,
7849+
.chain_id = ALC269_FIXUP_HEADSET_MODE
7850+
},
78407851
[ALC221_FIXUP_HP_MIC_NO_PRESENCE] = {
78417852
.type = HDA_FIXUP_PINS,
78427853
.v.pins = (const struct hda_pintbl[]) {
@@ -9012,6 +9023,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
90129023
SND_PCI_QUIRK(0x103c, 0x2335, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
90139024
SND_PCI_QUIRK(0x103c, 0x2336, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
90149025
SND_PCI_QUIRK(0x103c, 0x2337, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
9026+
SND_PCI_QUIRK(0x103c, 0x2b5e, "HP 288 Pro G2 MT", ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE),
90159027
SND_PCI_QUIRK(0x103c, 0x802e, "HP Z240 SFF", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
90169028
SND_PCI_QUIRK(0x103c, 0x802f, "HP Z240", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
90179029
SND_PCI_QUIRK(0x103c, 0x8077, "HP", ALC256_FIXUP_HP_HEADSET_MIC),

0 commit comments

Comments
 (0)