Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp874948ybe; Fri, 13 Sep 2019 07:38:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqypJrBRGcI3cTOJ83jeQ9GGTvramqnop0XZnXQaPcuXgAqtisMw8sKuu4lYPedeQTcpEZA6 X-Received: by 2002:aa7:cd73:: with SMTP id ca19mr48181806edb.266.1568385529557; Fri, 13 Sep 2019 07:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568385529; cv=none; d=google.com; s=arc-20160816; b=UJMb41qk7mODFuHlD7LKn72JEdaPrfK8QkkZ2puP54F16Wq7s427InOB/XsyW2b00N 8D152kIq5S2SZpldD8UZrVhxPUdEbOY/ryh9vVnculv8LxNznWEw30MMXKEGqp4Gi8b4 3+mUwIJTCOGYBk8MdBjZ8fve1xM0QSBoQtiijyQNkH6X1phzAk4TMk76zEqNXsbWOMpA WeXmK/tRzmt9n/upS3EDSE6kluZpXhT6+2PoKOWjYIzaMGLmZAa9lmbGKwviwhTVQs9J LjUzqnVTMbUzt9kSztSbKdyNoDPn40bOiLEG5CRpEMs6MeXr1SlLjpYhxMwLRo8dAra4 IGZw== 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=JmYBqKNikUDO1ylgbuV7HLuHQK/dMUxpBNDRGNqQmoY=; b=nO21KiK2+WGvIT3YK1lrF0DiqK9aFgL9uLJ8XxGutY6uxeUlLOSE8SgQwmZRNTrRgc pXSPP+sBEhhB9Q1wOlJNQ44rhtVvKTbcqJMbohhtKeRxtKT3vhB22mP+9QczEsCKrjVY Ap7Pit3Yz3fmzps5F7pryYYmBpThrBMqt9EXNvSTjXoLmx9YhS6QkgHhYAE8+QMyWv4n as8XpFsGxnlao2frGhzWVg8pry673j1bX9JlvrIzNRvHLo4eUv9MR6nEHGR1D4Ph3XSR Dz5Hv4zq6itRzk8SdRKvvf6xzOP/Ee7twBhPGabg+Tr8c3HyTI41icwfeJc9YoxGPC19 nLIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2F0sva9D; 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 k18si14241595ejo.145.2019.09.13.07.38.25; Fri, 13 Sep 2019 07:38: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=2F0sva9D; 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 S2388807AbfIMNKn (ORCPT + 99 others); Fri, 13 Sep 2019 09:10:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:35538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387443AbfIMNKl (ORCPT ); Fri, 13 Sep 2019 09:10: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 74237206BB; Fri, 13 Sep 2019 13:10:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380241; bh=tkJcgBZW8JC4MFQC4qLn5EjHybwkphxctT5vZCfwBnQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2F0sva9DBcnYhLG0gdxwvn02kEDij+37prWBavWP871Fe7CmdO/qXpD8ximNBsMvx MXEWeB9tyRHEif54v2GK6cco45lJDDtjhS/zxB3DL6uG1Xm9WVBFjKi1JK8ds1DI8G vz9w1SNgjPaTQv/qZKul4SrNgStjDSMnoWfY2Q2A= 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.14 03/21] ALSA: hda/realtek - Fix the problem of two front mics on a ThinkCentre Date: Fri, 13 Sep 2019 14:06:56 +0100 Message-Id: <20190913130503.004205289@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130501.285837292@linuxfoundation.org> References: <20190913130501.285837292@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 @@ -6588,6 +6588,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), @@ -8289,6 +8290,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),