Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5903166ybg; Tue, 22 Oct 2019 10:02:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5+0V8N/pX5aBrkDw29kkQlwJdBL1/bqqA0C4Fxmn+sawBqaejfg4MF9HpttjdMbOV+ZkA X-Received: by 2002:a17:907:397:: with SMTP id ss23mr17722348ejb.177.1571763730286; Tue, 22 Oct 2019 10:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571763730; cv=none; d=google.com; s=arc-20160816; b=0itjVrZ+j2QN9TOww40eqDjapwpmJsbKBiMQDrtrdhF6bwltHyPvj2Jt3mXvIZyfxe t+5HbQV+3aIi6CrKYjya9JXRVAVmt6t/VDPXFfYfDLLKr0+RZ+i/Zx/fw7TtRgwAqlGF 4hwfkellNW4ItfdQkV/koBlk0fv1aQpN+XIn0CC8O7BjEL8s3ZLSqbiuldfvTL0eaUEn vCLxUym+JefnaAh+J2FAafpASO4Ex2TSS2806vqM3L6miNyTLXNEFCgOgTPWwWqt57Xc amd49pURMwjSkQmr+YM0vtUkFWI7zwH+qkBuKqQ7psEJPsJp0QnWz7GtXI0aumDxgZKy 5ozQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=bOfKD8P0SH7ZAwMjG9JEyRJvlUr16zEXwWUpJZyK1Ps=; b=y7pFXHId7lG7nU1h6/Jobq/gGHKvEc1xId6FfKHvM76pLhDC1PzQYdQT92x+mT9VvO teEmCZtItjn8KB04JtuX0cwHafWmhvWHKXAWldAO5xioO/u3QBqq2HTObDmMEDm65RD/ rsc7EWhBIKyxSmxuM0trdfzPYWgXSIO6GT+di/jMqs5RyWWAw2MdpZ0xutAV0+GtLJ1Y MNKf47RXUj/f+xCfQKlJNv5maKOq8NZYXVtUVcAb8aHwyPgdXChKTpH3N+RxfgREPdSy 2+DmxA96M3YbLZd3HLvTuktFqUIb/o2LLWtCJCt2c0yQfE2fLlOj/ckW5Z/DdF64u+vk JnGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l23si12430545eds.310.2019.10.22.10.01.45; Tue, 22 Oct 2019 10:02:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732506AbfJVPjv (ORCPT + 99 others); Tue, 22 Oct 2019 11:39:51 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48401 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730141AbfJVPjv (ORCPT ); Tue, 22 Oct 2019 11:39:51 -0400 Received: from [114.245.47.48] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iMwFV-0000Ty-BI; Tue, 22 Oct 2019 15:39:05 +0000 From: Aaron Ma To: perex@perex.cz, tiwai@suse.com, kailang@realtek.com, hui.wang@canonical.com, alsa-devel@alsa-project.org, aaron.ma@canonical.com, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: hda/realtek - Fix 2 front mics of codec 0x623 Date: Tue, 22 Oct 2019 23:38:55 +0800 Message-Id: <20191022153855.14368-1-aaron.ma@canonical.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These 2 ThinkCentres installed a new realtek codec ID 0x623, it has 2 front mics with the same location on pin 0x18 and 0x19. Apply fixup ALC283_FIXUP_HEADSET_MIC to change 1 front mic location to right, then pulseaudio can handle them. One "Front Mic" and one "Mic" will be shown, and audio output works fine. Signed-off-by: Aaron Ma --- sound/pci/hda/patch_realtek.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index b000b36ac3c6..c34d8b435f58 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7186,6 +7186,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x312f, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION), SND_PCI_QUIRK(0x17aa, 0x313c, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION), SND_PCI_QUIRK(0x17aa, 0x3151, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC), + SND_PCI_QUIRK(0x17aa, 0x3178, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC), + SND_PCI_QUIRK(0x17aa, 0x3176, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC), SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80", ALC269_FIXUP_DMIC_THINKPAD_ACPI), SND_PCI_QUIRK(0x17aa, 0x3977, "IdeaPad S210", ALC283_FIXUP_INT_MIC), SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI), @@ -9187,6 +9189,7 @@ static const struct hda_device_id snd_hda_id_realtek[] = { HDA_CODEC_ENTRY(0x10ec0298, "ALC298", patch_alc269), HDA_CODEC_ENTRY(0x10ec0299, "ALC299", patch_alc269), HDA_CODEC_ENTRY(0x10ec0300, "ALC300", patch_alc269), + HDA_CODEC_ENTRY(0x10ec0623, "ALC623", patch_alc269), HDA_CODEC_REV_ENTRY(0x10ec0861, 0x100340, "ALC660", patch_alc861), HDA_CODEC_ENTRY(0x10ec0660, "ALC660-VD", patch_alc861vd), HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861), -- 2.17.1