Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3341523pxj; Tue, 11 May 2021 02:11:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu8yztDsM3/5qHnN1lVuSvC0vB1qKBiZMbjnf+DNozdeuVFLXFe877xDpUrQnHkEsPPDSf X-Received: by 2002:a05:6e02:1ba5:: with SMTP id n5mr24475227ili.45.1620724284917; Tue, 11 May 2021 02:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620724284; cv=none; d=google.com; s=arc-20160816; b=xQeSZKrA6JLLrtG8BDAfr+JrpMW2o2DX/7awbJu4LSX5o1a5OFpdtb/8XhbxyEDuEy UgYJx4g1jIXiCs3U9n7EMyebHlRujV2elLB+UKqTT8VI0ZwLAyqjlPriG0jQEWeSdFtv OQ4freakHciyP/+TsNqEBM7/TeDPjRhXYyUVSdKHQyE2o3v/gWhhCyH/9psCHmnZ5ZDO QDVZSzW3BUYODJ1sU5fmN5n6LP4ZrJuzPA2IdCFgzgJ+2xdL6sv9PNG+H5eyU58hgmoj hKqTnX9VmTmn49YucpBwCmXSA1FIv2LY1gAd2D/kXjW+bqfn3R5ijCf9boXEMW9ycH5x sprg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=qwR8cqF19SJunkHq3ClzllwLNyMDDEkrk2E1sNsvrsY=; b=j+46P2v02Gixyo0OSxw/rEVYR3U85DhoC8bcwu6nQmqj54ZUDfyN4QxLp6pXJ4XGio jNB1G458Ys+99QdxAgEziBdTNJ1BDY3GFEPSCfakXKOVDeAcT7SRl0fLvRZb3CBTx/ny N4+8zlVwPEaREu4DOz3KDe7SkXs36HHwNPfLcb9S3n3CazhBOEnz4yFuz1O+2ZS/Vq0f OFZfOFY5FTxWudgAJZCikoblR6eUMmaCFUcGaRLWHzSwRMIfoXari3Hhz54eup2F+i7U SgOGeRHA4EFDVhyKUOcCWwIo78vlI16u2yC3I/fmvFk/4XcogUKA58JW1weXqMzrWLyJ WrJQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si19734289jas.125.2021.05.11.02.11.12; Tue, 11 May 2021 02:11:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231290AbhEKJLW (ORCPT + 99 others); Tue, 11 May 2021 05:11:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:36254 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231269AbhEKJLP (ORCPT ); Tue, 11 May 2021 05:11:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id C1067B16B; Tue, 11 May 2021 09:10:08 +0000 (UTC) Date: Tue, 11 May 2021 11:10:08 +0200 Message-ID: From: Takashi Iwai To: Elia Devito Cc: Jaroslav Kysela , Takashi Iwai , Kailang Yang , Jian-Hong Pan , Hui Wang , Chris Chiu , Huacai Chen , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: hda/realtek: Add fixup for HP Spectre x360 15-df0xxx In-Reply-To: <20210510171332.8313-1-eliadevito@gmail.com> References: <20210510171332.8313-1-eliadevito@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 May 2021 19:13:33 +0200, Elia Devito wrote: > > 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 Could you try to put the quirk entry in the PCI SSID order? thanks, Takashi > --- > sound/pci/hda/patch_realtek.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c > index b4b71609dff1..be2a5cd2875d 100644 > --- a/sound/pci/hda/patch_realtek.c > +++ b/sound/pci/hda/patch_realtek.c > @@ -6542,6 +6542,7 @@ enum { > ALC285_FIXUP_HP_LIMIT_INT_MIC_BOOST, > ALC295_FIXUP_ASUS_DACS, > ALC295_FIXUP_HP_OMEN, > + ALC285_FIXUP_HP_SPECTRE_X360, > }; > > static const struct hda_fixup alc269_fixups[] = { > @@ -8099,6 +8100,15 @@ static const struct hda_fixup alc269_fixups[] = { > .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[] = { > @@ -8278,6 +8288,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { > SND_PCI_QUIRK(0x103c, 0x87f4, "HP", ALC287_FIXUP_HP_GPIO_LED), > SND_PCI_QUIRK(0x103c, 0x87f5, "HP", ALC287_FIXUP_HP_GPIO_LED), > SND_PCI_QUIRK(0x103c, 0x87f7, "HP Spectre x360 14", ALC245_FIXUP_HP_X360_AMP), > + SND_PCI_QUIRK(0x103c, 0x8519, "HP Spectre x360 15-df0xxx", ALC285_FIXUP_HP_SPECTRE_X360), > SND_PCI_QUIRK(0x103c, 0x8846, "HP EliteBook 850 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED), > SND_PCI_QUIRK(0x103c, 0x884c, "HP EliteBook 840 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED), > SND_PCI_QUIRK(0x103c, 0x8898, "HP EliteBook 845 G8 Notebook PC", ALC285_FIXUP_HP_LIMIT_INT_MIC_BOOST), > @@ -8665,6 +8676,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = { > {.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 \ > -- > 2.31.1 >