History

ALSA: hda/realtek - Fix microphone noise on ASUS TUF B550M-PLUS

Set microphone pins 0x18 (rear) and 0x19 (front) to VREF_50 to fix the microphone noise on ASUS TUF B550M-PLUS which uses the ALCS1200A codec. The initial value was VREF_80. The same issue is also present on Windows using both the default Windows driver and all tested Realtek drivers before version 6.0.9049.1. Comparing Realtek driver 6.0.9049.1 (the first one without the microphone noise) to Realtek driver 6.0.9047.1 (the last one with the microphone noise) revealed that the fix is the result of setting pins 0x18 and 0x19 to VREF_50. This fix may also work for other boards that have been reported to have the same microphone issue and use the ALC1150 and ALCS1200A codecs, since these codecs are similar and the fix in the Realtek driver on Windows is common for both. However, it is currently enabled only for ASUS TUF B550M-PLUS as this is the only board that could be tested.

Marios Levogiannis committed 4 years ago

Commit 9bfa7b31 parent 4dd99891 file · +10 −0Browse files

Unified · Split

sound/pci/hda/patch_realtek.c+10−0
@@ -1981,6 +1981,7 @@ enum { · 1980 unmodified lines
1981 ALC1220_FIXUP_CLEVO_PB51ED_PINS,1981 ALC1220_FIXUP_CLEVO_PB51ED_PINS,
1982 ALC887_FIXUP_ASUS_AUDIO,1982 ALC887_FIXUP_ASUS_AUDIO,
1983 ALC887_FIXUP_ASUS_HMIC,1983 ALC887_FIXUP_ASUS_HMIC,
1984 ALCS1200A_FIXUP_MIC_VREF,
1984};1985};
1985 1986
1986static void alc889_fixup_coef(struct hda_codec *codec,1987static void alc889_fixup_coef(struct hda_codec *codec,
@@ -2526,6 +2527,14 @@ static const struct hda_fixup alc882_fixups[] = { · 539 unmodified lines
2526 .chained = true,2527 .chained = true,
2527 .chain_id = ALC887_FIXUP_ASUS_AUDIO,2528 .chain_id = ALC887_FIXUP_ASUS_AUDIO,
2528 },2529 },
2530 [ALCS1200A_FIXUP_MIC_VREF] = {
2531 .type = HDA_FIXUP_PINCTLS,
2532 .v.pins = (const struct hda_pintbl[]) {
2533 { 0x18, PIN_VREF50 }, /* rear mic */
2534 { 0x19, PIN_VREF50 }, /* front mic */
2535 {}
2536 }
2537 },
2529};2538};
2530 2539
2531static const struct snd_pci_quirk alc882_fixup_tbl[] = {2540static const struct snd_pci_quirk alc882_fixup_tbl[] = {
@@ -2563,6 +2572,7 @@ static const struct snd_pci_quirk alc882_fixup_tbl[] = { · 31 unmodified lines
2563 SND_PCI_QUIRK(0x1043, 0x835f, "Asus Eee 1601", ALC888_FIXUP_EEE1601),2572 SND_PCI_QUIRK(0x1043, 0x835f, "Asus Eee 1601", ALC888_FIXUP_EEE1601),
2564 SND_PCI_QUIRK(0x1043, 0x84bc, "ASUS ET2700", ALC887_FIXUP_ASUS_BASS),2573 SND_PCI_QUIRK(0x1043, 0x84bc, "ASUS ET2700", ALC887_FIXUP_ASUS_BASS),
2565 SND_PCI_QUIRK(0x1043, 0x8691, "ASUS ROG Ranger VIII", ALC882_FIXUP_GPIO3),2574 SND_PCI_QUIRK(0x1043, 0x8691, "ASUS ROG Ranger VIII", ALC882_FIXUP_GPIO3),
2575 SND_PCI_QUIRK(0x1043, 0x8797, "ASUS TUF B550M-PLUS", ALCS1200A_FIXUP_MIC_VREF),
2566 SND_PCI_QUIRK(0x104d, 0x9043, "Sony Vaio VGC-LN51JGB", ALC882_FIXUP_NO_PRIMARY_HP),2576 SND_PCI_QUIRK(0x104d, 0x9043, "Sony Vaio VGC-LN51JGB", ALC882_FIXUP_NO_PRIMARY_HP),
2567 SND_PCI_QUIRK(0x104d, 0x9044, "Sony VAIO AiO", ALC882_FIXUP_NO_PRIMARY_HP),2577 SND_PCI_QUIRK(0x104d, 0x9044, "Sony VAIO AiO", ALC882_FIXUP_NO_PRIMARY_HP),
2568 SND_PCI_QUIRK(0x104d, 0x9047, "Sony Vaio TT", ALC889_FIXUP_VAIO_TT),2578 SND_PCI_QUIRK(0x104d, 0x9047, "Sony Vaio TT", ALC889_FIXUP_VAIO_TT),

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