Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4500408ybx; Mon, 4 Nov 2019 14:26:07 -0800 (PST) X-Google-Smtp-Source: APXvYqwYGVzG1sVrX1s/h/A1lJa8Akjff0LxMRu7nVNzFo7NZF9q0FbzBJoZ2sCdZw6Ly4kXCPuB X-Received: by 2002:aa7:c3d0:: with SMTP id l16mr1290533edr.18.1572906367824; Mon, 04 Nov 2019 14:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572906367; cv=none; d=google.com; s=arc-20160816; b=hrzJGLvsWE9P4RBd1E2q/hvS+n6D+24el1cQ5BnkDuUgGS1ounB5b81zXZnQexpMzM BMRKkUba8KOtOp9qzqio53VP1aZXbSEPMp0i1JOJ/mJlvOI7lPkB6HeXKEp0VgCSJncT sMe7CGbB6oO8PcOALpvibm86vNcktSwPs4haPPLjFW8rK1V8t4iaZSeLY4f91SO9InP/ jCz9QWyazzDsIuZ1/zivInbrjN6d8cy1D0cetjWN0CznofC259IwS0j5My2yHy+HblFP wdQlSV9chOHNpYxnSzkF0NBpMNirQsPfiFOyxtXvNxkQvq3CCth4ohMsea4G6xL8iT8z ipHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XB6Fky+1x2rtyJhn0a+S6/M2p1baOeu39ot9sl+95dw=; b=ahktgir7WjFORw3tll0f6YccdUj1LGIg6ODKYQA7rpbQEW5RCLbPkNxAnKxkAiSVBd VITgnebUiQLNCOwRMWCb/TjBFjiK1AwqU1GmjGXlslRDs6+xKckA7kiUCYmBT86DnzMI BvXhfBoOFWWdJzzqxjOMQ8inVN6mpJeWJV5X7sWzWqz1/5uxUmwVIwQOjKXmvgiFmKPp BMbfvQPc0zVyLEOZwtmYK5oN8B7qzObMD3aVRJQtOn1HKJu1X3ib511LO99Hq9LEYMrG E4+LdV1/gKYnAb8AXVHO6g2H21y5NuqDkRkcYp8OSRq5gexP/Baj0KJgDA53wFhT/FM8 jGJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="qNPR7Z/p"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si8598879edz.83.2019.11.04.14.25.44; Mon, 04 Nov 2019 14:26:07 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b="qNPR7Z/p"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388046AbfKDVyy (ORCPT + 99 others); Mon, 4 Nov 2019 16:54:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:49872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388038AbfKDVyx (ORCPT ); Mon, 4 Nov 2019 16:54:53 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5D51E21929; Mon, 4 Nov 2019 21:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572904491; bh=hG0FQxqMYWkHZBisukMRWTSzMTEWZVRtJjdiDts67x8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qNPR7Z/pd+QDxmhxjVjYmHknjK0xRiMZub6vS6HoQ+Pi7Xfj5pAM1diC0XJt0pCGj ijihLSweRAfPYFnnxEQKvUrPqOeguUWL2+Z7i8FDDss3aHzBKpx13UGuorWPD/qM7W AQX20sYgISbfskOw/7JAFkN6FS0ENULTtliWfZ4s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aaron Ma , Takashi Iwai Subject: [PATCH 4.14 65/95] ALSA: hda/realtek - Fix 2 front mics of codec 0x623 Date: Mon, 4 Nov 2019 22:45:03 +0100 Message-Id: <20191104212110.091412764@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212038.056365853@linuxfoundation.org> References: <20191104212038.056365853@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aaron Ma commit 8a6c55d0f883e9a7e7c91841434f3b6bbf932bb2 upstream. 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 Cc: Link: https://lore.kernel.org/r/20191024114439.31522-1-aaron.ma@canonical.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6614,6 +6614,8 @@ static const struct snd_pci_quirk alc269 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),