Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3548375pxj; Mon, 24 May 2021 09:07:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2JvvUD1rY7PgVHM8JPtqsY0C37WanZLjqFkDmEKSAvJurFkvJyR5VPWvAsPvKuFmG30rj X-Received: by 2002:a05:6602:1223:: with SMTP id z3mr16544508iot.97.1621872476117; Mon, 24 May 2021 09:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872476; cv=none; d=google.com; s=arc-20160816; b=i6HvRcxUWwV0br73WRNvapnytwAeGwAo93VSugu8y/03LmOYvuQgIkBlPEvFXO07cN /FC3KjfxKibXTY0MvgNpk7qESO7InY+dQYYIDt5qHCq/OA5DbhFcfzqQZxRsQh3U+eHr gbi6MGKVDOb2tJKMmdfwTdpYHqJo/jOz21xdAKTB7floyPcbEiLC1aTtxZ4ODJw5dnmp ycfKCJ79slnHhwqoLIL9sfUDTj/CNpmcYBgMIksYwVZRFuB1IEqEFOux+fJlIZLS36iz URycTNvMLGdx7I5s35p6QI+uA2ChVCOIvoKtgvL4Z0E9ChUPJJniiJFgN+zSLPd3+4LA Fp9w== 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=BHy8+hmdKvP//kRJDRLveWrBR45MljkY04Bxdg08aFI=; b=d3Yv96FzeDyG3iV3QRTj69bvTE3WKPF5G3pyEvQK/K8KVfrLw9usrftpH+09hWM1N1 fbTPEnon/4aXnY9pdLRA6JNRsWpW1OC4ZY+xRZ1Q828qaR5Mn8hPCopF1l5HZq7lohUD YOny1KB2jd70sXMsbGCb5X+Tj0w97aaP90a5XJ9AaoVU+B5AYHORQz+IV+IZlrB6W33v n4ZtAOEOmvaverdn35daP+wxSEa7oTN77/KE1PAq6RHVFhZ/cPTSA4BFEFv6tG1qCG3W jfchUJe/7BWtEiUpyEX9hY08MxG+HsThd+wu6216Tv4zjQC/Jue1pfrv3tNkX/uP2RNn rIAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ziaUJTI8; 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=pass (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 o67si15832811jao.17.2021.05.24.09.07.43; Mon, 24 May 2021 09:07:56 -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=@linuxfoundation.org header.s=korg header.b=ziaUJTI8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236210AbhEXQHQ (ORCPT + 99 others); Mon, 24 May 2021 12:07:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:40464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235511AbhEXP62 (ORCPT ); Mon, 24 May 2021 11:58:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 43CF761962; Mon, 24 May 2021 15:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871061; bh=F7XUj1y4l9p5/0wd86vLqQkW+WxSuS0B1E5vnQik50Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ziaUJTI8JkHZg0ySOfTrQxmOf0KCw46t4AvyPT9kDad7XOTPMKrE67vDqWfiap1ju OvwfjhcVD29hgvoxWJ+KvjfeTuYUgIJuiYXAKIEW5OtL/yDaQOrUU/YzRWkLA3GnJ6 rtU1EeWV7X5PQyhedB7sQPeKYz6REwaILteOCoYk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 5.12 056/127] ALSA: hda/realtek: Add fixup for HP OMEN laptop Date: Mon, 24 May 2021 17:26:13 +0200 Message-Id: <20210524152336.739975953@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152334.857620285@linuxfoundation.org> References: <20210524152334.857620285@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: Takashi Iwai commit 5d84b5318d860c9d80ca5dfae0e971ede53b4921 upstream. HP OMEN dc0019-ur with codec SSID 103c:84da requires the pin config overrides and the existing mic/mute LED setup. This patch implements those in the fixup table. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212733 Cc: Link: https://lore.kernel.org/r/20210504121832.4558-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6533,6 +6533,7 @@ enum { ALC256_FIXUP_ACER_HEADSET_MIC, ALC285_FIXUP_IDEAPAD_S740_COEF, ALC295_FIXUP_ASUS_DACS, + ALC295_FIXUP_HP_OMEN, }; static const struct hda_fixup alc269_fixups[] = { @@ -8064,6 +8065,26 @@ static const struct hda_fixup alc269_fix .type = HDA_FIXUP_FUNC, .v.func = alc295_fixup_asus_dacs, }, + [ALC295_FIXUP_HP_OMEN] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x12, 0xb7a60130 }, + { 0x13, 0x40000000 }, + { 0x14, 0x411111f0 }, + { 0x16, 0x411111f0 }, + { 0x17, 0x90170110 }, + { 0x18, 0x411111f0 }, + { 0x19, 0x02a11030 }, + { 0x1a, 0x411111f0 }, + { 0x1b, 0x04a19030 }, + { 0x1d, 0x40600001 }, + { 0x1e, 0x411111f0 }, + { 0x21, 0x03211020 }, + {} + }, + .chained = true, + .chain_id = ALC269_FIXUP_HP_LINE1_MIC1_LED, + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -8222,6 +8243,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x103c, 0x82c0, "HP G3 mini premium", ALC221_FIXUP_HP_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x83b9, "HP Spectre x360", ALC269_FIXUP_HP_MUTE_LED_MIC3), SND_PCI_QUIRK(0x103c, 0x8497, "HP Envy x360", ALC269_FIXUP_HP_MUTE_LED_MIC3), + SND_PCI_QUIRK(0x103c, 0x84da, "HP OMEN dc0019-ur", ALC295_FIXUP_HP_OMEN), SND_PCI_QUIRK(0x103c, 0x84e7, "HP Pavilion 15", ALC269_FIXUP_HP_MUTE_LED_MIC3), SND_PCI_QUIRK(0x103c, 0x869d, "HP", ALC236_FIXUP_HP_MUTE_LED), SND_PCI_QUIRK(0x103c, 0x86c7, "HP Envy AiO 32", ALC274_FIXUP_HP_ENVY_GPIO), @@ -8642,6 +8664,7 @@ static const struct hda_model_fixup alc2 {.id = ALC255_FIXUP_XIAOMI_HEADSET_MIC, .name = "alc255-xiaomi-headset"}, {.id = ALC274_FIXUP_HP_MIC, .name = "alc274-hp-mic-detect"}, {.id = ALC245_FIXUP_HP_X360_AMP, .name = "alc245-hp-x360-amp"}, + {.id = ALC295_FIXUP_HP_OMEN, .name = "alc295-hp-omen"}, {} }; #define ALC225_STANDARD_PINS \