Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4419050imw; Tue, 19 Jul 2022 06:21:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vj43jOzD1PpDFPtZ8ac5lPsZvkEvioHv6RmdVcNssACml2+zHAOEgDEG2f2M3fyrxUjv8g X-Received: by 2002:a17:906:8478:b0:72b:4f81:29d8 with SMTP id hx24-20020a170906847800b0072b4f8129d8mr30664615ejc.179.1658236914945; Tue, 19 Jul 2022 06:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658236914; cv=none; d=google.com; s=arc-20160816; b=DUlJEaawqx0UdEPIaBm7c+HnAh2jrskx9eFveqoYcjBilwdobvxiACBXSSnXOCRVQG 6vpqna83dgxoHLDJjolV/W4vs6dqR5hNz09NL3Dx0NVFUG0GkTiBlnOQH6gjACBefhOG EgYmxxZ+fMIN1nOnJnez3veIeZO9nJ5jYGc8cw3cU/e9NTd/9KLQMrVr/vsQ3+4QIHtb Z/wlgGcmsl2SuBSaodewkoqRyqqiLdQrnT0bnny7ZsKtPjuCbbbkgqiKnymeZ0BupkKE 6P4iCm+fGUl1pg4NRZ7kt9dQAEQkraaWMegQTqxkNGigdT6STnFlLBNnvUu7nAvYpUDr mjgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vtkkETgAn0z9idheUIHkTJZmgCPfKxK3Imt0vHTR6vU=; b=aDiP5NMlWYv9LMNU9/Mc9vvvxJ0i6fx0T8cuNbnzsyG7oeY0/XIdUkEx2iLVQG4Jh3 4GNPdGFpWAHtX71/n+l6BJk18PHA+r9LmTsZhpFuVKOovHZy3Gn8wp7AdpBrTDMmKx5g uChH/ym8dEuMLXzwPCHGjjoEoR52d+9MjFaNwO+pmZyZunHyvfC6WgYirMdBXK4xRZ5X 5kC+6Q3wYEIkBAHyZcKutZzNxmBbUN78Y9hECR0chWBZ/ueaKC2fK834+Z8Oo+UoM12L tVcb0Vfjg+roSGhoXDuRuyParCiZWTk4acarEeRX8nTDqhPAHhm4euVuClX02z25Ug4d lWow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EdILadeL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fg23-20020a1709069c5700b007262d20d6cesi2642685ejc.200.2022.07.19.06.21.29; Tue, 19 Jul 2022 06:21:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EdILadeL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238703AbiGSMLD (ORCPT + 99 others); Tue, 19 Jul 2022 08:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238601AbiGSMJM (ORCPT ); Tue, 19 Jul 2022 08:09:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1734050184; Tue, 19 Jul 2022 05:02:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A1285616F9; Tue, 19 Jul 2022 12:02:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69700C341C6; Tue, 19 Jul 2022 12:02:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232138; bh=AqoUla41OwbAt/AcTKQpn/WlleyqhAgDTGoqOsLIvsI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EdILadeL07ZNOue+9RNgqPdZ4DriqBK+lF/jZ+jxvsHMiGQKuDTfqhjIS3LaiekYU pkhdKegVgQ84DWzNKkarfTOPHLYgUdP2sjzGcG6ozVVWzf3A0UTrkwPZYYUFr4Jqgw vzR+vS0lnGnFggs51h8H+BdSIyrtqTQa7ZJQ+6Q4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Meng Tang , Takashi Iwai Subject: [PATCH 5.4 04/71] ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc221 Date: Tue, 19 Jul 2022 13:53:27 +0200 Message-Id: <20220719114552.826332506@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114552.477018590@linuxfoundation.org> References: <20220719114552.477018590@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Meng Tang commit 4ba5c853d7945b3855c3dcb293f7f9f019db641e upstream. On a HP 288 Pro G2 MT (X9W02AV), the front mic could not be detected. In order to get it working, the pin configuration needs to be set correctly, and the ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE fixup needs to be applied. Signed-off-by: Meng Tang Cc: Link: https://lore.kernel.org/r/20220713063332.30095-1-tangmeng@uniontech.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6427,6 +6427,7 @@ enum { ALC298_FIXUP_LENOVO_SPK_VOLUME, ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER, ALC269_FIXUP_ATIV_BOOK_8, + ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE, ALC221_FIXUP_HP_MIC_NO_PRESENCE, ALC256_FIXUP_ASUS_HEADSET_MODE, ALC256_FIXUP_ASUS_MIC, @@ -7305,6 +7306,16 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC269_FIXUP_NO_SHUTUP }, + [ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { 0x1a, 0x01813030 }, /* use as headphone mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE + }, [ALC221_FIXUP_HP_MIC_NO_PRESENCE] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { @@ -8163,6 +8174,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x103c, 0x2335, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1), SND_PCI_QUIRK(0x103c, 0x2336, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1), SND_PCI_QUIRK(0x103c, 0x2337, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1), + SND_PCI_QUIRK(0x103c, 0x2b5e, "HP 288 Pro G2 MT", ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x802e, "HP Z240 SFF", ALC221_FIXUP_HP_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x802f, "HP Z240", ALC221_FIXUP_HP_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x820d, "HP Pavilion 15", ALC269_FIXUP_HP_MUTE_LED_MIC3),