Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2905465iog; Mon, 27 Jun 2022 05:29:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tJ23KgaqCBp8B5DfFaECo6BrF65qHky6qQwYbixWloF6tqh8ykL1gvgauSF3SUBB3Ad0d9 X-Received: by 2002:a05:6a00:1a4a:b0:518:bbd5:3c1d with SMTP id h10-20020a056a001a4a00b00518bbd53c1dmr14936082pfv.64.1656332993533; Mon, 27 Jun 2022 05:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656332993; cv=none; d=google.com; s=arc-20160816; b=qQRpfmf7obcOdkm/yaPp0ugxU698Q26He1tzBX6jHHnHL5jE5F2nw6mCeuuVtX/7z0 QwAADeBwOLwA5xLcRgdLvXoVoEKRu/Ea3MnWIyNQf1PSDqqLWa688ThwGjMzl9UiE4Nj jaWycrFT7OyW/pGqlRV5OcV+vWBchUuyjJ36cS3OPtNFJ93Zf1KX9I34Glwl3ZfRZmYX Q/UqX+FVIjK/TGh0s5dAYxAjbgxFHzOnj3mEmuK8I/ZfkiywZGqL3NpPdYRTtUijRKUf 3ohnVP5ybaVYFWFUDd5/Ia3m6yqeGZBtzBSr7Q4l8LYiwpNz3vVISGXZx+m7clyC3WIO N4gA== 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=wmNOoMtXkQL7SLmsi2wXr/kYQa8V1u9JJ3ZqS6352YY=; b=dNe8ZMkxNuMopzNPGPBDytkIAZyZwTEkb/iKX9s5P30A5fUYeDL+eJm+zm2oQUTb3W GqzINHJe4O8qzdUXD62iT1D9HpH4QKEalvpm6hB02oNp0MpQZaxjrBOKlp99UTHK8xxf vX4gmdTcCELLvVZoHMGpjcpktaORTpjYOUdrLJUaq3EGQOXcGtZT48tNKjaiTHzhwqQi ds8LueDcQj/ZEdcfnO7fs3qmop214XUgWvo/BwQ2LctFVOA1VP8nlUtsGFqWLd1z00/i tXmUufE9V7Jk3PC9ZXWj4Jb9AK3b8tKoqZuq1J0yGjSi0ldiMrawgjEnkO1Zb4jEsM6+ JlMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dxMLbBPp; 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 d19-20020a63f253000000b0040c9e0a1ef5si13726303pgk.516.2022.06.27.05.29.41; Mon, 27 Jun 2022 05:29:53 -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=dxMLbBPp; 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 S235503AbiF0Ldz (ORCPT + 99 others); Mon, 27 Jun 2022 07:33:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235499AbiF0LcD (ORCPT ); Mon, 27 Jun 2022 07:32:03 -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 767D52637; Mon, 27 Jun 2022 04:29:19 -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 13D8261494; Mon, 27 Jun 2022 11:29:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00B5BC3411D; Mon, 27 Jun 2022 11:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329358; bh=Rse5J3isC+DufuGIxXJNKM33pL28cbW3lAk8M9k5KxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dxMLbBPp3xkr+zy1GCeroiBRi19usRTkiWX7xmkIg5ra7E1oE4irjaPxe0st2EZnb 6uPqpGwa6HRGzjtt7TIpQgKkzl+pX426EPGTnMVxFANUYjsFfPeYdlMTVcD0PcJDay DHoYoy8F9J02/a4Abm7zm2LF02c9tEmQOtcTdnDU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kailang Yang , Takashi Iwai Subject: [PATCH 5.4 05/60] ALSA: hda/realtek - ALC897 headset MIC no sound Date: Mon, 27 Jun 2022 13:21:16 +0200 Message-Id: <20220627111927.808204592@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111927.641837068@linuxfoundation.org> References: <20220627111927.641837068@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.5 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,T_SCC_BODY_TEXT_LINE 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: Kailang Yang commit fe6900bd8156467365bd5b976df64928fdebfeb0 upstream. There is not have Headset Mic verb table in BIOS default. So, it will have recording issue from headset MIC. Add the verb table value without jack detect. It will turn on Headset Mic. Signed-off-by: Kailang Yang Cc: Link: https://lore.kernel.org/r/719133a27d8844a890002cb817001dfa@realtek.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9805,6 +9805,7 @@ enum { ALC668_FIXUP_MIC_DET_COEF, ALC897_FIXUP_LENOVO_HEADSET_MIC, ALC897_FIXUP_HEADSET_MIC_PIN, + ALC897_FIXUP_HP_HSMIC_VERB, }; static const struct hda_fixup alc662_fixups[] = { @@ -10224,6 +10225,13 @@ static const struct hda_fixup alc662_fix .chained = true, .chain_id = ALC897_FIXUP_LENOVO_HEADSET_MIC }, + [ALC897_FIXUP_HP_HSMIC_VERB] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { } + }, + }, }; static const struct snd_pci_quirk alc662_fixup_tbl[] = { @@ -10249,6 +10257,7 @@ static const struct snd_pci_quirk alc662 SND_PCI_QUIRK(0x1028, 0x0698, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1028, 0x069f, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x1632, "HP RP5800", ALC662_FIXUP_HP_RP5800), + SND_PCI_QUIRK(0x103c, 0x8719, "HP", ALC897_FIXUP_HP_HSMIC_VERB), SND_PCI_QUIRK(0x103c, 0x873e, "HP", ALC671_FIXUP_HP_HEADSET_MIC2), SND_PCI_QUIRK(0x103c, 0x885f, "HP 288 Pro G8", ALC671_FIXUP_HP_HEADSET_MIC2), SND_PCI_QUIRK(0x1043, 0x1080, "Asus UX501VW", ALC668_FIXUP_HEADSET_MODE),