Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3494543pxj; Tue, 11 May 2021 05:55:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHILTz4FQJ3APQyz53So8ZZTrN/lt6zQ0BduuNTEi7QUKN6UYSMKOJgSYhcY3zVj2zjGLy X-Received: by 2002:a50:fc02:: with SMTP id i2mr36226226edr.320.1620737746694; Tue, 11 May 2021 05:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620737746; cv=none; d=google.com; s=arc-20160816; b=d1SkDFZ5qYnS3qjdh60HAsnCNLpSWDD/nb6/2hh7PMpx/ZfLkLGs5SDKVtL6Ulk4WU aNU0CduMrhyd07wEhxIF9bkLlLIm6zxruXSh+IFb74bCqE4JSMnKB5/6dyhj8U3hJhuO v7CjbPTxrAe+9Mv5zu2Xlz1QZQI3G+ANc6dQ6zrEwybvdgbz5aqgxHeNXHGalZ6uF1Am AbrtlYzAJ6PaafgMSyHrtzcBdI7RHgEA+/VZJT18n5Ics2sU2z+e/FdDL0lUDwEe0NGA lonUV73KodxHKM0EUdBSfm29hOwCtN9YgbfNGKwlT8sWbdf/tFMi0r9alZ8iTEUpfq80 5Jjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=5Vz3NVjeSduBFGcr7e4KNuJw+YQxjHIZNkFnnUo3vhA=; b=n+/RjMVoc+ki51izIlADexvjnrVW9yvJBGkTKHAeOeQtAD68kaCRsCjZqUbvyv441B UKQ327ZXvWIU4nI/yvGSx+78Up3yM8pMl5YjBO/xJq+1WmdZpkt+IJITsSzTne1T62OV 5Xy71qwrMlEdW7Yl/Kn6d/aT6iLlDEd0UV3H49A7YtD/zVMWMJW5/CWvP7vcPUGg1XtS QaAtQijU4+Ef2NqUC34du4As1e3VbK3wUU++btlj01dmur80l9ZM1ptWhrYIpcDBAREs o2bdwe5MEnpfQiNQBp32OoylzfsBDCxCrTVHbtGpJe1sG67D4HQ1xoYzVu8u2QlBxzpN Q2CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TfrLT7I8; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si2507905ejr.606.2021.05.11.05.55.16; Tue, 11 May 2021 05:55:46 -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=fail header.i=@gmail.com header.s=20161025 header.b=TfrLT7I8; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231643AbhEKMxC (ORCPT + 99 others); Tue, 11 May 2021 08:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231459AbhEKMxB (ORCPT ); Tue, 11 May 2021 08:53:01 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46B09C061574 for ; Tue, 11 May 2021 05:51:54 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id j10so2523330ejb.3 for ; Tue, 11 May 2021 05:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5Vz3NVjeSduBFGcr7e4KNuJw+YQxjHIZNkFnnUo3vhA=; b=TfrLT7I8hBPUsbCgT5nmLrSnP1r7AhcYkJEB3XXNnc8qRQW9Q8HnoPYQGyuiQK2TbQ EbaJARNMC1mqSnRB/2XcZ5olBFCG8P97ocjZbFGdBWyqpV0ql08dGRPgcdB31t61zodP +L0p8pjCMHASUzN9j3WA9u3dEiiOc+15mKk4V8EnEV/Nny9eK78nOR9odhelbo2Cnukf 0kKKLqlTKlMG00Azf2556mgpDOnXYS0RH8RYThM6giyQLFwpeFuJeWmV3u5RvksJkKbc G8ruV+xoxRHwSwGUK4yEsoo2+XEKFPsUYoM0se+KJEOFMxf1iG5DFmaU/AJSkRFLnMkC Xi6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5Vz3NVjeSduBFGcr7e4KNuJw+YQxjHIZNkFnnUo3vhA=; b=MWJuovmONKIuH6Qd3Tp42IyEj1hhNdyafgGtd/JsG2Pyj0DbeBrducdJh0YphLLw1h xVFGASi02wSLLKmPW8xb4L6qJcnTmfelH2TToV1z3c0sVwRuCw5S01LFrdQrg+gsfxs6 8MdP+xp8P6bpRF0vmVHKbWKz3JtqL0x7XpuXREEZyvyfrLV29ha2ezV4p6dv92kXqDRS Olw8g6PpozqOfD3XtBj30wYCjGKA+D/1pL4lsvdXFOYrafG5BxTdzdn9HPzkQPIiOKrd VVXBqHnLOdRghKJgtEkRRT9RuCS1ZsTjLYVBIAUIL+Yp3C2ghYlYwtkMzKdisxd3zupo 8ILQ== X-Gm-Message-State: AOAM530vGp1wNWA3OrXN94gWKOqnsvC99Ydfp1KhmTgH42xVRphEPwP2 BqY9HbsFAKaqiNZE3xzM/3U= X-Received: by 2002:a17:906:f56:: with SMTP id h22mr31470771ejj.366.1620737512992; Tue, 11 May 2021 05:51:52 -0700 (PDT) Received: from spectre.. (host-79-47-116-73.retail.telecomitalia.it. [79.47.116.73]) by smtp.gmail.com with ESMTPSA id h4sm13093391edv.97.2021.05.11.05.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 05:51:52 -0700 (PDT) From: Elia Devito Cc: Elia Devito , 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: [PATCH v2] ALSA: hda/realtek: Add fixup for HP Spectre x360 15-df0xxx Date: Tue, 11 May 2021 14:46:49 +0200 Message-Id: <20210511124651.4802-1-eliadevito@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- v2: Put the quirk entry in the PCI SSID order 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..3e269de84079 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[] = { @@ -8259,6 +8269,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { 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 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