Skip to content

Commit 2a36c16

Browse files
jason77-wangtiwai
authored andcommitted
ALSA: hda/realtek - Fix the problem of two front mics on a ThinkCentre
This ThinkCentre machine has a new realtek codec alc222, it is not in the support list, we add it in the realtek.c then this machine can apply FIXUPs for the realtek codec. And this machine has two front mics which can't be handled by PA so far, it uses the pin 0x18 and 0x19 as the front mics, as a result the existing FIXUP ALC294_FIXUP_LENOVO_MIC_LOCATION doesn't work on this machine. Fortunately another FIXUP ALC283_FIXUP_HEADSET_MIC also can change the location for one of the two mics on this machine. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hui Wang <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 60083f9 commit 2a36c16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7087,6 +7087,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
70877087
SND_PCI_QUIRK(0x17aa, 0x312a, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
70887088
SND_PCI_QUIRK(0x17aa, 0x312f, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
70897089
SND_PCI_QUIRK(0x17aa, 0x313c, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
7090+
SND_PCI_QUIRK(0x17aa, 0x3151, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC),
70907091
SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
70917092
SND_PCI_QUIRK(0x17aa, 0x3977, "IdeaPad S210", ALC283_FIXUP_INT_MIC),
70927093
SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
@@ -8961,6 +8962,7 @@ static int patch_alc680(struct hda_codec *codec)
89618962
static const struct hda_device_id snd_hda_id_realtek[] = {
89628963
HDA_CODEC_ENTRY(0x10ec0215, "ALC215", patch_alc269),
89638964
HDA_CODEC_ENTRY(0x10ec0221, "ALC221", patch_alc269),
8965+
HDA_CODEC_ENTRY(0x10ec0222, "ALC222", patch_alc269),
89648966
HDA_CODEC_ENTRY(0x10ec0225, "ALC225", patch_alc269),
89658967
HDA_CODEC_ENTRY(0x10ec0231, "ALC231", patch_alc269),
89668968
HDA_CODEC_ENTRY(0x10ec0233, "ALC233", patch_alc269),

0 commit comments

Comments
 (0)