Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3545911pxj; Mon, 24 May 2021 09:05:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAzghtlNbJNajJVe0Q7tiHqTTZwXovNFTwgZpA6P1RJrDR+zCqrXwwoRIlaabiMMrrgDyN X-Received: by 2002:a6b:7714:: with SMTP id n20mr14957657iom.126.1621872317258; Mon, 24 May 2021 09:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872317; cv=none; d=google.com; s=arc-20160816; b=kgdKleQyw3b2y/vBQAbCVeMkdXuCePx31aaeQ8QuJBV1BVZJWeVTjPzI7txHeU4B7P t+zUEUu3Zcdep+4IWQD/SsU23U3KZqaexFWnnBWoPPEv9usfS5W42R75HV1BfxDBX8Ks hkNk3y5oxLJ8BPbuDxlGR+aiyOoFIT3KyN+pyfhhfK+ZxDrb/uvp/lh0U8o/Ba+uzOu8 ji/bwVZ+DhjkJhfSlW2GpEmDs1ACupqrM5BFlPR25kUCCi3ah6N7RZRtesFn8TGQWraP rqjFv4Z3T7aVPtWJVJ181cKmN8dQdtl3IX9JtAa0D/tIFjmC2dicgejsGxpYQJ3grVhu hdMw== 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=ZyiMoHRDprSRP9revEVL3xgOTkSwSYlMrNxe68YW3gZhf3EmJBNccuJNjWFer7B21K K8qecQau3HWUp+Qzysn4QlsSGXyZAssRaO085j2CAsxQRycwbX5p1+M305Adf8yWGh37 u6DwPfbD1unPqwvx94hMW31mS+m6KPMA85LfR6NOvI9aCc2yWxjh4AFiTaGhpYuSfrdM mWfQXbPnpmNzLON8c+Fms5FmNiU/YwHg7ScBYBXa2KRIvgo8CQ/oYT6jLhiqkF102ZKo 6zDwOC3RYa6SUcZhi3psYkYf/NcPPWxyAo3SbiFOlCI2UEFQNJ2S1ijq+PM+uoUdcccM sPow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GJ7LjRgf; 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 p10si14291769ilq.156.2021.05.24.09.04.56; Mon, 24 May 2021 09:05:17 -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=GJ7LjRgf; 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 S237057AbhEXQFG (ORCPT + 99 others); Mon, 24 May 2021 12:05:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:45006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235562AbhEXP6d (ORCPT ); Mon, 24 May 2021 11:58:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 677C66195A; Mon, 24 May 2021 15:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871063; bh=ZUTBNKxxxfq9G9Y4cC7y7d4x5/l8iXdOoffAoaWCkKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GJ7LjRgfscxpJ6+G0ilolAcEPHXZ7ns8PwLvTtSyK1VDV0XY8toSOHp+VTdcYjumz iKEqD5MpMW8jdMzTVJFsZ7dy/OE+kT3od+frCFLVzEPqfXk8nq66Mo/8HTyIQhZGRU kYp9ikLvkmlDLxEI0OidgZ/3d8mnRzkkF+Ygfa58= 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.12 057/127] ALSA: hda/realtek: Add fixup for HP Spectre x360 15-df0xxx Date: Mon, 24 May 2021 17:26:14 +0200 Message-Id: <20210524152336.771338275@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: 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 \