History

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.

Meng Tang committed 4 years ago

Commit 4ba5c851 parent 61d30781 file · +12 −0Browse files

Unified · Split

sound/pci/hda/patch_realtek.c+12−0
@@ -6901,6 +6901,7 @@ enum { · 6900 unmodified lines
6901 ALC298_FIXUP_LENOVO_SPK_VOLUME,6901 ALC298_FIXUP_LENOVO_SPK_VOLUME,
6902 ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER,6902 ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER,
6903 ALC269_FIXUP_ATIV_BOOK_8,6903 ALC269_FIXUP_ATIV_BOOK_8,
6904 ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE,
6904 ALC221_FIXUP_HP_MIC_NO_PRESENCE,6905 ALC221_FIXUP_HP_MIC_NO_PRESENCE,
6905 ALC256_FIXUP_ASUS_HEADSET_MODE,6906 ALC256_FIXUP_ASUS_HEADSET_MODE,
6906 ALC256_FIXUP_ASUS_MIC,6907 ALC256_FIXUP_ASUS_MIC,
@@ -7837,6 +7838,16 @@ static const struct hda_fixup alc269_fixups[] = { · 930 unmodified lines
7837 .chained = true,7838 .chained = true,
7838 .chain_id = ALC269_FIXUP_NO_SHUTUP7839 .chain_id = ALC269_FIXUP_NO_SHUTUP
7839 },7840 },
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 },
7840 [ALC221_FIXUP_HP_MIC_NO_PRESENCE] = {7851 [ALC221_FIXUP_HP_MIC_NO_PRESENCE] = {
7841 .type = HDA_FIXUP_PINS,7852 .type = HDA_FIXUP_PINS,
7842 .v.pins = (const struct hda_pintbl[]) {7853 .v.pins = (const struct hda_pintbl[]) {
@@ -9012,6 +9023,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { · 1169 unmodified lines
9012 SND_PCI_QUIRK(0x103c, 0x2335, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),9023 SND_PCI_QUIRK(0x103c, 0x2335, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
9013 SND_PCI_QUIRK(0x103c, 0x2336, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),9024 SND_PCI_QUIRK(0x103c, 0x2336, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
9014 SND_PCI_QUIRK(0x103c, 0x2337, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),9025 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),
9015 SND_PCI_QUIRK(0x103c, 0x802e, "HP Z240 SFF", ALC221_FIXUP_HP_MIC_NO_PRESENCE),9027 SND_PCI_QUIRK(0x103c, 0x802e, "HP Z240 SFF", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
9016 SND_PCI_QUIRK(0x103c, 0x802f, "HP Z240", ALC221_FIXUP_HP_MIC_NO_PRESENCE),9028 SND_PCI_QUIRK(0x103c, 0x802f, "HP Z240", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
9017 SND_PCI_QUIRK(0x103c, 0x8077, "HP", ALC256_FIXUP_HP_HEADSET_MIC),9029 SND_PCI_QUIRK(0x103c, 0x8077, "HP", ALC256_FIXUP_HP_HEADSET_MIC),

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t