Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4446430imw; Tue, 19 Jul 2022 06:49:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vV7ImCsijWWFi/5wWX0Y60KIJS01N1WCM2vF/m61OtqXo+BG6z9jBncZ6mZOj0J6FygMXP X-Received: by 2002:a17:907:160a:b0:72b:51e0:d90b with SMTP id hb10-20020a170907160a00b0072b51e0d90bmr28931578ejc.609.1658238545841; Tue, 19 Jul 2022 06:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238545; cv=none; d=google.com; s=arc-20160816; b=x0WIyNbMKlmBDVWuBKJraGWyx6MP2sDhgUCxd1FIUsA1xc+vnHcnydcWFWC+Me6ndg 4tzUtReMyYOIaMjJcpn+Ge0HytLVmtuH6To/Rv0BwOsSbddoDxZxJ0HG3qecPAyeaMtz yZKDATiidpgJAmgyUONFWCnVxyut4Os1uNGYFlS3H94CjX/IVnyHxs/gJ7G22HYE668/ UeajFxja+pDospHrb5NYLxUtcF9pJPP7vMOp+e9enuv70RAqTkYf26VWYhUblnb+ulPW JkH1t5BCaPXTsh117FmfPEaV3rIA29tPB7Dy9z70kuGkMk8iS/1SRMt23ZCDuHZ/tu0V LoYA== 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=X6NgDAGcoQaamwO7hEs39xuZbRf1l2Zxe/ndbvvJ7Mg=; b=yaqfDdvoMuPQWK4a/o7MSyp83xP1vSLexxIjsTe/Cnzu9VPwL0u453vKphjBFTjqCN 1csSfMVEfjC8Gn764pQAKZRKs9K1rMj9RoXVlAsOscHweOGVbc0PqWBDT5FZEiYxxOV5 h+JV6qpLteSOvozdRP7o1dl39L/rFKtKew7jo7ltm/pfoafWnPCYHuyGfDcL2a07eqRe 9ZTLXUFx2Cr1ZDrQXpIozzZRdLb/iJW2Por0BrCCOkh706ZIsagUy42HyLb0pj0X53tf s5XTNTGir0eXT/m/tfR8r/bHVMUxFSAETuqh74QPm/Yjy7HOMINxz02s043f1w9wDexq py8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IIYiqBhO; 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 x10-20020a05640226ca00b0043a66b4e28fsi23366903edd.377.2022.07.19.06.48.41; Tue, 19 Jul 2022 06:49:05 -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=IIYiqBhO; 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 S238095AbiGSMDe (ORCPT + 99 others); Tue, 19 Jul 2022 08:03:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238012AbiGSMC7 (ORCPT ); Tue, 19 Jul 2022 08:02:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C99642ACF; Tue, 19 Jul 2022 04:59:17 -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 68AF66163C; Tue, 19 Jul 2022 11:59:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3612CC341C6; Tue, 19 Jul 2022 11:59:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658231955; bh=yzWGUrZOP7NfqVeg/Dm48ITr0jNxhaDDxRjL4zHgwvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IIYiqBhOtPbPFEmaqyfW91YxpF2bQ62o7GoE/GnZTBX1CgGkkJcBYj19vvKL/Mhoe cxF/RtZ2S8pxgYZ46vTAm+FMM7Irjdb0RDd3pFq/NA6vh9fan/Jiil2AnSn/dr9H5g DtK0A3PGR4qNGZwo7r/GixCX5OklK7slEILJfFmo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Meng Tang , Takashi Iwai Subject: [PATCH 4.19 03/48] ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc221 Date: Tue, 19 Jul 2022 13:53:40 +0200 Message-Id: <20220719114520.329055196@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114518.915546280@linuxfoundation.org> References: <20220719114518.915546280@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 @@ -5844,6 +5844,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, @@ -6642,6 +6643,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[]) { @@ -7136,6 +7147,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),