Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3349324ybg; Fri, 25 Oct 2019 02:50:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzI37dQZ4Gv4lmIDSNtLDVvnQvbQB/ieKqtQacQA82D//+/HllvoH1MZP4wXikRr99bx/3S X-Received: by 2002:a05:6402:213:: with SMTP id t19mr2863977edv.7.1571997037436; Fri, 25 Oct 2019 02:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571997037; cv=none; d=google.com; s=arc-20160816; b=wffr/9MC+kTZjj6Ak/9isFv8Osv2ec/dtm5ZcT8jwLkY0kXvUK0uRPaZW7+debbTNd qNSl1chYcG2lHyKa0drSGFYnEkr/TRVa4fnwY0aZVvnlKAWI7p5hweXodWByuSVdIwT8 +83dsA2g+9DJT5mkcNDjCEHb1sRBMjGad8D9kvtiPMxf/q+D+OF6Me7H3MYd3XxyUqfH YUOucky/AqFH9iwcaBfIteGad7WgvtInagWwldK1mIVNeRWL0UlpGVVBKyycg5h/WuhV uPYNRdiXEQLc539yBr4daxA06Ipj/2CdpNwlHtcvAk1Q45RjbxgAX+8+2zvy6KFQgv+A ev9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from; bh=5BN/mRaDPs7P0kbhYrVHzE7vLrhviADADEkjFaq8zE4=; b=cs+JdKsGAsI4gqQdxmmHq+fOHNLdmbDoJcz1APR3NuFJsKItXMxS2/wHppMX3ucg3A o2/932AuxPoqtctJ1zy0aXHHaPBTS8JlIATpAsFA1EBi2xOGDQAZQWw/n3zqZzoJ894j J2VDKXh9DjSYWMB1qUUff6YZFn/DJfYfKbAQCqaoh53/b9Fiu0B8FYgkjM7dcTi+wsja vfQ8TbhfytBem59Air4Eu1aahYe+F2qO//mzL61R9KRmvC9OSNj50SnicLlz0STMff8H vU00JHnwbLnMWLKyNr8+tRPsDMPETlIK+r9kRAUheu/mxyGjlFmp7R3cmFriv4IKX0cO aLDw== 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 t7si815612eji.439.2019.10.25.02.50.13; Fri, 25 Oct 2019 02:50:37 -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 S2408119AbfJXLTQ (ORCPT + 99 others); Thu, 24 Oct 2019 07:19:16 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35500 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407132AbfJXLTQ (ORCPT ); Thu, 24 Oct 2019 07:19:16 -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 1iNb8y-00023V-MQ; Thu, 24 Oct 2019 11:19: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 v2] ALSA: hda/realtek - Fix 2 front mics of codec 0x623 Date: Thu, 24 Oct 2019 19:18:50 +0800 Message-Id: <20191024111850.31137-1-aaron.ma@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191022153855.14368-1-aaron.ma@canonical.com> References: <20191022153855.14368-1-aaron.ma@canonical.com> 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index a0c237cc13d4..173a7867bb45 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7221,6 +7221,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), -- 2.17.1