Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp788537ybe; Fri, 13 Sep 2019 06:24:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPpOEzJCe+wsIizQppQ2AnMvB+l5oPztiPPtndoRSiZHAEdtLDjRlk9GHg3Mg0Q53jHgbV X-Received: by 2002:a17:906:a895:: with SMTP id ha21mr39295208ejb.291.1568381075207; Fri, 13 Sep 2019 06:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568381075; cv=none; d=google.com; s=arc-20160816; b=DQC/fKZIrSTKv4ItL0rfXck1Px0uOQPmPayL86tuRk1f5pO4l40O+h/+aXB8hQ7aPB wGagHB/68Ed+3JpYkq1RdKrz86BwlMhzxX2sNx7EmFJoYLfyC6fuSKprur284acy9NAR TKO/PI4xrXuRGbcFiok9x2jzNfH75t/HD+7MW206iiIeNu1+p7umOliffU8o4SzaI89U aWk/h3LdZIWLm1xsCnrfNL3qyfw+hViF8D8G3SFTYlVecGcoQr/CJsU+dA4U2HUWNabZ T0ewp9CjzppIR9N89Xh9UnPY1nU5OzvX18NnDoXffA1+Mgip4p1yiu2WWpCzOIAF6gx6 KXAw== 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=Ymem+WS7ZQwr2Aajmykk1NeTSuOapHQIzrDiwopUOXs=; b=PLkC8R+8mvjhRMcMY68Q3zsmdnUtbtA0C6ZVZcTQ1U+GHOzZmsw/e0IaSx7DQgREYk Yq5ciMCdVycsmS6JkjDK4EJwepMOlozO02D8/mpz/wqpZdtchlr5UVS+Js8QUFlX8/y8 Dt13X5fr0indyYFpgdXJEk8Bk7Gg8Kpcg+sn++wqvWuQUGKASarJFJYG5tRoQewV5wGi 3RP+1QvIRe8lyFaaRyyS4MhgiAEforFOYFsiOolna6KJmlMZJ5XAwlc1ZiHo91abnhWh b8U4dQO7JMePsabmAEiNvfkAjh6sxEGwxN5lTHqDWX14fvRiBgqkWbaIwrOQb3YUXLoH iZzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1RaaYjZI; 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 w26si9844632eda.438.2019.09.13.06.24.11; Fri, 13 Sep 2019 06:24:35 -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; dkim=pass header.i=@kernel.org header.s=default header.b=1RaaYjZI; 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 S2390815AbfIMNVY (ORCPT + 99 others); Fri, 13 Sep 2019 09:21:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:50918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390798AbfIMNVV (ORCPT ); Fri, 13 Sep 2019 09:21:21 -0400 Received: from localhost (unknown [104.132.45.99]) (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 C50B9206A5; Fri, 13 Sep 2019 13:21:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380881; bh=Dg3jlNIf/h+RkBDZwXD9XN8GZU8Y+STpvMeX0kaOBqk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1RaaYjZITt2Vm5c+qW3aGR4oeN8GIRj+ieNQln8Fl7DBv05oLrNFnVIO+JRLpND7L sBOzIFhuh4eEDs3y38pStzxcz7IudXg+4BpB04IzYIkByuWDUJH95+niSWNibfWxit 6I1tMm85vXEf56qHQ5Id1OCHU43GS0aE84/S+ZLI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hui Wang , Takashi Iwai Subject: [PATCH 5.2 07/37] ALSA: hda/realtek - Fix the problem of two front mics on a ThinkCentre Date: Fri, 13 Sep 2019 14:07:12 +0100 Message-Id: <20190913130512.344461813@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130510.727515099@linuxfoundation.org> References: <20190913130510.727515099@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: Hui Wang commit 2a36c16efab254dd6017efeb35ad88ecc96f2328 upstream. 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/20190904055327.9883-1-hui.wang@canonical.com Signed-off-by: Hui Wang Cc: 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 @@ -7087,6 +7087,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x17aa, 0x312a, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION), 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, 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), @@ -8961,6 +8962,7 @@ static int patch_alc680(struct hda_codec static const struct hda_device_id snd_hda_id_realtek[] = { HDA_CODEC_ENTRY(0x10ec0215, "ALC215", patch_alc269), HDA_CODEC_ENTRY(0x10ec0221, "ALC221", patch_alc269), + HDA_CODEC_ENTRY(0x10ec0222, "ALC222", patch_alc269), HDA_CODEC_ENTRY(0x10ec0225, "ALC225", patch_alc269), HDA_CODEC_ENTRY(0x10ec0231, "ALC231", patch_alc269), HDA_CODEC_ENTRY(0x10ec0233, "ALC233", patch_alc269),