Skip to content

Commit f33f79f

Browse files
jason77-wangtiwai
authored andcommitted
ALSA: hda/realtek - change the location for one of two front microphones
On this Lenovo machine, there are two front mics, and both of them are assigned the same name "Mic", but pulseaudio can't support two mics with the same name, as a workaround, we change the location for one of them, then the driver will assign "Front Mic" and "Mic" for them. Cc: [email protected] Signed-off-by: Hui Wang <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 6ede2b7 commit f33f79f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5179,6 +5179,7 @@ enum {
51795179
ALC233_FIXUP_ASUS_MIC_NO_PRESENCE,
51805180
ALC233_FIXUP_EAPD_COEF_AND_MIC_NO_PRESENCE,
51815181
ALC233_FIXUP_LENOVO_MULTI_CODECS,
5182+
ALC294_FIXUP_LENOVO_MIC_LOCATION,
51825183
};
51835184

51845185
static const struct hda_fixup alc269_fixups[] = {
@@ -5962,6 +5963,18 @@ static const struct hda_fixup alc269_fixups[] = {
59625963
.type = HDA_FIXUP_FUNC,
59635964
.v.func = alc233_alc662_fixup_lenovo_dual_codecs,
59645965
},
5966+
[ALC294_FIXUP_LENOVO_MIC_LOCATION] = {
5967+
.type = HDA_FIXUP_PINS,
5968+
.v.pins = (const struct hda_pintbl[]) {
5969+
/* Change the mic location from front to right, otherwise there are
5970+
two front mics with the same name, pulseaudio can't handle them.
5971+
This is just a temporary workaround, after applying this fixup,
5972+
there will be one "Front Mic" and one "Mic" in this machine.
5973+
*/
5974+
{ 0x1a, 0x04a19040 },
5975+
{ }
5976+
},
5977+
},
59655978
};
59665979

59675980
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -6143,6 +6156,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
61436156
SND_PCI_QUIRK(0x17aa, 0x2233, "Thinkpad", ALC292_FIXUP_TPT460),
61446157
SND_PCI_QUIRK(0x17aa, 0x30bb, "ThinkCentre AIO", ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY),
61456158
SND_PCI_QUIRK(0x17aa, 0x30e2, "ThinkCentre AIO", ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY),
6159+
SND_PCI_QUIRK(0x17aa, 0x310c, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
61466160
SND_PCI_QUIRK(0x17aa, 0x3112, "ThinkCentre AIO", ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY),
61476161
SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
61486162
SND_PCI_QUIRK(0x17aa, 0x3977, "IdeaPad S210", ALC283_FIXUP_INT_MIC),

0 commit comments

Comments
 (0)