Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp214362pxx; Wed, 28 Oct 2020 03:03:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfow20hA+E570PwqENGuSDXfVHYVZRl+DkeGC/LQnO/Tq8eCSsWRYAKt3WRyNX/6oN3z6Y X-Received: by 2002:a17:906:3641:: with SMTP id r1mr6508059ejb.405.1603879381181; Wed, 28 Oct 2020 03:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603879381; cv=none; d=google.com; s=arc-20160816; b=f/6FrNV3fxv5i26ivJ9Roq3J7YTfGOg4lj5sR1lXiUwYw2RthKBhBoe5mdBrU9lV4b XquqbaPlWTPTiu38XsVuMm2rJxkj/36/4imB7vivderp6q5aVYq5IuqbGuBug7rveL/E /g9JZeyN/tC+V/5goDfKsnH2dGexvlnmeEhEyKTSjase2Vd+Mj+73RgDSkrKlCc0vjGy t/QyYPtq4KTmHyl26wlSVA4XCaTVc67v5oTfVZ2ty7/3B2/020G9/UpfDIvUnbHWAyMj 7YDrz59yZrxpyjJD3fNo83aLt/97NKsXwtGfEUwAFgzs2Zq7cvCxMP87ly0MuJI/CACQ zupA== 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=etXT3DHch6y62ezK1eyENZw9iEZvuJzfHeJg4XFt2j0=; b=0rLvfgDOZVZBGu2x2AOaYSEWV22NHRmI81ZHozMJKilzBusTiEl5Glw0tzzdFbiO2V UKcHHii/eULXrtXVf3DzDL9/xHlVmbix8KHez9aYMfy8rXpgImpgsA8+JuaOCOFQDyc4 JdvCj/hnQbnSeIeLKNiqyk0tn2V/f5KZ7F1A6eAFakeYCfY2m1xY5lIduGHAehZfLlNq F6d7R6ViWVCBKrLIb7E2JVVL2WclPmVC37gdRlp72z3SNxpjA1pdjAaibz5k+hZo31D0 /+JwBNERgp0SkfFBZt1ZxXOEqzDbwmwBpRky0WAJNpObgxDZWarzhz3Ju2QbRVdhm/Kh yPog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Yoof7dCw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si2868715ejb.712.2020.10.28.03.02.32; Wed, 28 Oct 2020 03:03:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Yoof7dCw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760061AbgJ0OcP (ORCPT + 99 others); Tue, 27 Oct 2020 10:32:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:56772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759455AbgJ0OaK (ORCPT ); Tue, 27 Oct 2020 10:30:10 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 BDB3222202; Tue, 27 Oct 2020 14:30:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809010; bh=tCHkSlU2u/KOa8dHQ7vlo3kgVJEImYGOFcc+o9pRyKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yoof7dCwql+T2CLa4kg7NP6Sj8pRfxDHp8xNqR10qpoMdZjF0cPNC2xfv8XHyaatK rgbP0unvata2wvwGd891G7nU70W2mZJDTic4Fdc2vwDsEx13/8gR7jO05tsRoNUbsT +oMIbz8U8dIAlcwUrgMnRmfCLT9+tAIQrhbEJbc0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hui Wang , Takashi Iwai Subject: [PATCH 5.4 042/408] ALSA: hda/realtek - set mic to auto detect on a HP AIO machine Date: Tue, 27 Oct 2020 14:49:40 +0100 Message-Id: <20201027135457.030710677@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hui Wang commit 13468bfa8c58731dc9ecda1cd9b22a191114f944 upstream. Recently we enabled a HP AIO machine, we found the mic on the machine couldn't record any sound and it couldn't detect plugging and unplugging as well. Through debugging we found the mic is set to manual detect mode, after setting it to auto detect mode, it could detect plugging and unplugging and could record sound. Cc: Signed-off-by: Hui Wang Link: https://lore.kernel.org/r/20200928080117.12435-1-hui.wang@canonical.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 11 +++++++++++ 1 file changed, 11 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6216,6 +6216,7 @@ enum { ALC269_FIXUP_LEMOTE_A190X, ALC256_FIXUP_INTEL_NUC8_RUGGED, ALC255_FIXUP_XIAOMI_HEADSET_MIC, + ALC274_FIXUP_HP_MIC, }; static const struct hda_fixup alc269_fixups[] = { @@ -7595,6 +7596,14 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC289_FIXUP_ASUS_GA401 }, + [ALC274_FIXUP_HP_MIC] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { + { 0x20, AC_VERB_SET_COEF_INDEX, 0x45 }, + { 0x20, AC_VERB_SET_PROC_COEF, 0x5089 }, + { } + }, + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7746,6 +7755,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x103c, 0x869d, "HP", ALC236_FIXUP_HP_MUTE_LED), SND_PCI_QUIRK(0x103c, 0x8729, "HP", ALC285_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8736, "HP", ALC285_FIXUP_HP_GPIO_AMP_INIT), + SND_PCI_QUIRK(0x103c, 0x874e, "HP", ALC274_FIXUP_HP_MIC), SND_PCI_QUIRK(0x103c, 0x877a, "HP", ALC285_FIXUP_HP_MUTE_LED), SND_PCI_QUIRK(0x103c, 0x877d, "HP", ALC236_FIXUP_HP_MUTE_LED), SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC), @@ -8071,6 +8081,7 @@ static const struct hda_model_fixup alc2 {.id = ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE, .name = "alc256-medion-headset"}, {.id = ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc298-samsung-headphone"}, {.id = ALC255_FIXUP_XIAOMI_HEADSET_MIC, .name = "alc255-xiaomi-headset"}, + {.id = ALC274_FIXUP_HP_MIC, .name = "alc274-hp-mic-detect"}, {} }; #define ALC225_STANDARD_PINS \