Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3435826ybg; Fri, 25 Oct 2019 04:13:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJ5zavufYul6lyXjNQJqC5eXCh9MXMe6JGB24xjGCnB18IOu1jLrp5UjiKyxmW8kuo5lSh X-Received: by 2002:a17:90a:a598:: with SMTP id b24mr3541646pjq.46.1572001994345; Fri, 25 Oct 2019 04:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572001994; cv=none; d=google.com; s=arc-20160816; b=FIkugmkyuyoXKNTjbHmpLZfd8Pj1e57KUrvQTfM6HTTvf+tnTVetY/vCSmETdMPBUt +tFHVK/nzw77PEWOHd0siNQxMq42jo/BUOx29761pC4OYic3NCGG9CAcWj8DJj0d3RpX EUjY2hKaurFz5Kl1Z+h8b2gCxfkW3yGmmDworQGWi7GsKRvRgYectw9RRxxlya/LTQcy /htSF43F5kZy59EgIl5rzI81P+gBcHprwyLzsY7Fk9gieIieC+HYWHubqJeDwfGdk5rs D9y3Zp41GVl2QfLSQpE3Ydm4qvf+pRMqU5U/8C8RrGsdiSicZuvaQ+HjyLZRzVYTk2K4 aPcQ== 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=BE5J7eba4O7k2kyAeDJlYIhumvN5xRiVXnJiTD/H8x0=; b=RdGNOAw9Z0RkMwJVppd9mlFeUqa9ybPyC1YWK/JiDPWUfgU0gtcd7k7a3uKAUfkHjV 8lWyFr0bfBcnPYHgTiWBldS2g7MwzlB8WSiP/c8ZBF99kOUKhHaHSXmlPp7pqzTCdlzC 3w77i8bIoFmjY5awmntkuj5QuXVtel99WEla1ek6DWUOxVjVqkA+1MaL2cjPPpBCIJMv JBRHLum/3sMA5Z5UkKTWgtQ/dXs6u1XZzEfbwVSvDI3suUa1MuLPCJClCWygigEW8Z9r yv6J8wYzTsAkoOAhueQElF+wHd/Laf4EvO+Eq3tF+KU1nNchUYd8+UrXvjS/FUKkJPK0 ea5A== 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 bj6si2122148plb.289.2019.10.25.04.12.35; Fri, 25 Oct 2019 04:13:14 -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 S2439122AbfJXLo5 (ORCPT + 99 others); Thu, 24 Oct 2019 07:44:57 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35924 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbfJXLo5 (ORCPT ); Thu, 24 Oct 2019 07:44:57 -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 1iNbXt-0003cb-GY; Thu, 24 Oct 2019 11:44:50 +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 v3] ALSA: hda/realtek - Fix 2 front mics of codec 0x623 Date: Thu, 24 Oct 2019 19:44:39 +0800 Message-Id: <20191024114439.31522-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..80f66ba85f87 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, 0x3176, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC), + SND_PCI_QUIRK(0x17aa, 0x3178, "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