Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3543186pxj; Mon, 24 May 2021 09:02:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoKIYVo5LgR1knrgXWqbw3tN6qnBqs/JbSlvFWzTtySMhRYhvh7MSJFl7nktuEmVNda4rF X-Received: by 2002:a02:6d13:: with SMTP id m19mr25137487jac.65.1621872154746; Mon, 24 May 2021 09:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872154; cv=none; d=google.com; s=arc-20160816; b=sGrRd/KWHPe9+9bX3/+vDmZOE+yTz+bZ28OFFe3b+fHF005RaXiSMFL8YUjsEWKtAd rRkMhJAuT2kBR8xR8nslge/8vA8AfOoHCWdA73e72NDvoN3fd8XLf+pmjhFYQVdRryc+ x0Can/oy3HsjATE+QP+HaEfegjwfsEcPeM0tDcTdmGDyEva2r7oQXzSSsbhoYYPBlnRB QRJ9TFWRDZpfIuoZAzBt2nftvX/WDfbD9l39+eJX21rcWZRRPjrvdhEJ7Q/YJ7mNtBqd cD9AdlvRpu0tqR8PHCIdw7Nud1gnZ85e9f85TAVZ502COZ+MZ8wJ4/LwGYJoZ6kh8YYQ /P5A== 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=TtdQ3d5B4y1xlBlIGo4l/60SIPb1p8FU3L8wNrI1I3U=; b=Wu0YSYfNiE74BLGBJiqtnHWe1Zj7y+P9ZqAl+k1DlyBwZN2OKYJIYSKYGJ3ZX9wn1f XwW6DgzjQ3OmsYM2aaHx/mY6lKwykfdR5dEcNn4oZgAZb0v/96HDTMk4N2umK3+2O0OZ yloITLKflqNpqB+joyrUgccIrx0L0CfEn7coZb1yJVrsk1ufTdwtxkXthF//Ud0Vg4ti CbUDFTQ6O5qhq7iNc8mKlfurACpkFX5XuDz01kf7yVJfQK/MpwKosiT3w7AQRJ2wwwFl XTq9Ej0MgqgoOH3m/EOiXUnCvlII7i5HEEAwdnKFhsy2xpQ6a77uVBq84gb/ZJGOinVc +6MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="zd/yHCGO"; 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 c14si9029173ilm.1.2021.05.24.09.02.19; Mon, 24 May 2021 09:02:34 -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="zd/yHCGO"; 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 S234472AbhEXQCC (ORCPT + 99 others); Mon, 24 May 2021 12:02:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:41358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234767AbhEXPzh (ORCPT ); Mon, 24 May 2021 11:55:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E2D8461404; Mon, 24 May 2021 15:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870916; bh=ZUTBNKxxxfq9G9Y4cC7y7d4x5/l8iXdOoffAoaWCkKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zd/yHCGOaQBm2Av5Id3AabSEgvEF5YxvLTpcJTPvPdmNDH485UMK1L/6Op4saB+s5 eAw8kTQJ5FkvqLWHwJdEatTzVHbDu+ZV6z7u9W5aBNA5yU+vLK3XhqmCputrQwL0II 8db/ptkYznndxWZ6ZBjvxqCj/nvMohLjreyTe5Dg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Elia Devito , Takashi Iwai Subject: [PATCH 5.10 049/104] ALSA: hda/realtek: Add fixup for HP Spectre x360 15-df0xxx Date: Mon, 24 May 2021 17:25:44 +0200 Message-Id: <20210524152334.465869762@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152332.844251980@linuxfoundation.org> References: <20210524152332.844251980@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: Elia Devito commit f2be77fee648ddd6d0d259d3527344ba0120e314 upstream. Fixup to enable all 4 speaker on HP Spectre x360 15-df0xxx and probably on similar models. 0x14 pin config override is required to enable all speakers and alc285-speaker2-to-dac1 fixup to enable volume adjustment. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=189331 Signed-off-by: Elia Devito Cc: Link: https://lore.kernel.org/r/20210511124651.4802-1-eliadevito@gmail.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 @@ -6534,6 +6534,7 @@ enum { ALC285_FIXUP_IDEAPAD_S740_COEF, ALC295_FIXUP_ASUS_DACS, ALC295_FIXUP_HP_OMEN, + ALC285_FIXUP_HP_SPECTRE_X360, }; static const struct hda_fixup alc269_fixups[] = { @@ -8085,6 +8086,15 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC269_FIXUP_HP_LINE1_MIC1_LED, }, + [ALC285_FIXUP_HP_SPECTRE_X360] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x14, 0x90170110 }, /* enable top speaker */ + {} + }, + .chained = true, + .chain_id = ALC285_FIXUP_SPEAKER2_TO_DAC1, + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -8245,6 +8255,7 @@ static const struct snd_pci_quirk alc269 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, 0x8519, "HP Spectre x360 15-df0xxx", ALC285_FIXUP_HP_SPECTRE_X360), 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), SND_PCI_QUIRK(0x103c, 0x8724, "HP EliteBook 850 G7", ALC285_FIXUP_HP_GPIO_LED), @@ -8665,6 +8676,7 @@ static const struct hda_model_fixup alc2 {.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"}, + {.id = ALC285_FIXUP_HP_SPECTRE_X360, .name = "alc285-hp-spectre-x360"}, {} }; #define ALC225_STANDARD_PINS \