Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp779756ybe; Fri, 13 Sep 2019 06:16:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkEADz/YHBEZML9a0c9Uie1qZlkv7gnR3gd9SfeSPeTI4aRgh7ZhELULrgUtrYE3YRYMIS X-Received: by 2002:a17:906:8317:: with SMTP id j23mr38644659ejx.270.1568380609185; Fri, 13 Sep 2019 06:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568380609; cv=none; d=google.com; s=arc-20160816; b=cCxovxWhnlOUj2PaaaQ8SjyzbnJHb0d5yrOySN0T9kZt9eoJDuuoCkm1vFOGpEQI2W ADV+IcK6vUAi9Kzl+b16ylE2g1psWn8aUnoURmT1uHeTyTvrUl3BSGjMgKNUt4MYhkq5 fX2yAYmxSnfWuBas9nIaRIh1v+0VI1/IfhgsQZFofPwUbc7jTIrN0bRmxaDFT8vrYrpe h1f2UUt8EFXJTfFodEnuXEKcXNYpOz8K663iDSqRimR/IQ/14NJTXxxb8UZOg8FD1O2f W7t1MtZ8Zjy9SSQM7KUWmMXNDyqTvXaooVNYLUOcRdzsXbaOb2xVMrUTcp3A1yBMDafh poUw== 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=uRb1ylUKQtT4A0S+DMTB8tgkNtHVCJo+BVCWIVjOJ+w=; b=1G51lkpABKWDrRuZ1BR/+soNtpa87cT63jsDcCSxwxGy/0DGp6BupOfVxf19wXGnEs YEUQFIz6i8dsFGsogXpgN8w6DUlG7ayduZyEmeEnnkDSd4p6eQ6rQAeGJ8NXXs6qrEDr 2wUFJi1iDVy1ayWDPvO6Kk1R1lUFBPL4hxnDxQMl28mk4PvQWEAKvqBlJVD+qqbUf2sL PhY9ROXWzYkUF2ARGrkJ34xsVhxi2STKKFbu/JF8lcUGkjJmh8X4V6+L9e8QAxHJohuK Lj6nzO0x2dXmVknbiiACDTHwClJFOgbyJoXV7+YQZVDx8/yXIw6BqeRPi54A6VNyf+sB wfbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="bgnw/C/r"; 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 c23si10827490edt.376.2019.09.13.06.16.25; Fri, 13 Sep 2019 06:16:49 -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="bgnw/C/r"; 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 S2389023AbfIMNLn (ORCPT + 99 others); Fri, 13 Sep 2019 09:11:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:36876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388968AbfIMNLl (ORCPT ); Fri, 13 Sep 2019 09:11:41 -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 8DDFE206A5; Fri, 13 Sep 2019 13:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380301; bh=8DE6lR45DZDIJGF3LG0Gcay5sKlwjeqe+2jvsjtFNfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bgnw/C/rvDHKXAVgc/OAihKAmnIYzzO/zDTe1E0JH0aXmD/MmW+jOkhZjtk5E18Kf 3MuxaH0tex1GBgew0Vg7TfLgIumlBdKLx+bx3qVt7Etmnlr+3W9zYunXEUWtcloWxJ NMwANk+h3EdYKNejkuIU3Xp9Wp2Tu6x9NG818cJQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hui Wang , Takashi Iwai Subject: [PATCH 4.19 005/190] ALSA: hda/realtek - Fix the problem of two front mics on a ThinkCentre Date: Fri, 13 Sep 2019 14:04:20 +0100 Message-Id: <20190913130600.080241149@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130559.669563815@linuxfoundation.org> References: <20190913130559.669563815@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 @@ -6951,6 +6951,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), @@ -8813,6 +8814,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),