Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2768341pxj; Mon, 10 May 2021 10:17:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwETAhro6Txj9kCdCCWnqDotoAOTgkzYjilwoyDutxfJEcxHRf7sUms3p6gLIg/NbfS0P+u X-Received: by 2002:a6b:4e15:: with SMTP id c21mr15577977iob.116.1620667020393; Mon, 10 May 2021 10:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620667020; cv=none; d=google.com; s=arc-20160816; b=G/FKW77ivoHsAhPIWxCFLNViXh6byYh1OL8zrqY9+UO16GWP2TW9q+x5Cj5pNCgFV6 jMeqE1uYeh0ufnjPt6K4eBeNGe455V92QYMU9inSeQ0FcO+PSqLiAwkQLij3pYHdfXOM rOMgTttpucCLdyz36Vr3PRL1p5t6T9hDmHv9mRyQfm/QUhxwJnbmugpZhbJLWu1g82Yl QGdniIWoHC2EyeWkhRSz1wF01YQrVBdAUuiESuK9Y5Gx1++tp+PZVnpcAj1xoxFOmMB5 M7somP91klfpplTll7n/GljoObFr1cZqP2DbSAEewDyXpmVza7g1YsXfA5syH7+lYXvB FQRA== 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 :message-id:date:subject:cc:from:dkim-signature; bh=7jIuFuf8Zfs+fmLGUjbEH8ZtGFko41nDRxioSANkA/8=; b=MSyb2EOazxbe75W570NQdnPDyNgmCEysiLteRcf9viWpFF3OLUk9s8ocHx7vgRs2uM yqwANGxoLaDZnoth60O9djyO3KTX34qCQq3FPyNBA9U3fyBRUf7tiejTipCR+yit36cD h6W4CHvfoU6sxZQZt5FdFSEhfEl2zfCkaFzCfLitEULeJN7PcM/ZeshWBA0CwCXzkVbe DDH9SpBP7yvtJDnrS+Kuj3ArTvUrX8kscrSPKmgWa41a1e15pQRMagz29nfxJ+d3Nr2K 8KIgD46dOgRMHZ4qVXpHZkGyF+6XONDNE5vYwgVE5Jw4BHexgEYnkmj2doIGGlUhtrKJ pMHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=uEs9tjg9; 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 c6si19689570iot.35.2021.05.10.10.16.47; Mon, 10 May 2021 10:17:00 -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=uEs9tjg9; 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 S232012AbhEJRQO (ORCPT + 99 others); Mon, 10 May 2021 13:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbhEJRQN (ORCPT ); Mon, 10 May 2021 13:16:13 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 602BDC061574 for ; Mon, 10 May 2021 10:15:08 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id n2so25657155ejy.7 for ; Mon, 10 May 2021 10:15:08 -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:mime-version :content-transfer-encoding; bh=7jIuFuf8Zfs+fmLGUjbEH8ZtGFko41nDRxioSANkA/8=; b=uEs9tjg9MZlXMlSQ7QXwugYoZwYcsSKgPLBJw48pSKTBDkNLaPzDPjP1tKjacIzIj6 ipHnA/6mWnM0PFh+DtNQherH10zY6acIPlf+Q7vsO1RkHp3eodkZaNveaB+juGlfZOyu LbZ/H9ytlwMwvkuFV3D4QrEI+EDfyK4S4u5gj0Y/iPR6fh6Cu9ADapSMsbromZ03tOoE 4y/JRQ2Eiv4lWDDw4Ol8R166s7ywc0oI+h62xHOfkRq5Igx0xft0d7Ic+lNFjIJ0kjF4 JJ7BFZAJs7x8OktMlIiC8p6Aq09VUgUj7M8GvU0hCJojQODibeL78EaQKquj0CQPPxIv p5Ig== 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:mime-version :content-transfer-encoding; bh=7jIuFuf8Zfs+fmLGUjbEH8ZtGFko41nDRxioSANkA/8=; b=bjGgwb0eCqWPxHn3pFodQdJD4/ba5zRuDFMaXAGxUgEL/W5qCQs6qZsFWEiEZwNt3s igXG8jai/0CPPZ7wGv0R5pSSBKECjKeow2mmEar3AhIPMpJxLWfJQelAepcZaebLPgAV iQF6jWEpQOWPa7Vq43XYwaSr9uFG2teuysWF4q40sm+TcKaO7YqUhqK9M8jC118sK/RT sbPj4IrhpUmi4HHCQv/V0qkNPdymw4kjSGKUdd1gw1uoJ3aHsIAkl0rcMfc9jWP/J2rj 1oMoRTkzBBzonaXaz6F2lqIK5F2BsuX7JJ01TQ3Sbq4bDWTFuqXNMIdHfjLspa41o1EF PEMQ== X-Gm-Message-State: AOAM531gcIwxaHvJ0J/VWo9UzbBXMqqimOxGB/Y8rdYFs/QhmX03Dkuq OJvsF9fuqd+YhHcPyBvgd9/yWF03Dm9ruO/K X-Received: by 2002:a17:907:ab2:: with SMTP id bz18mr3169358ejc.150.1620666907134; Mon, 10 May 2021 10:15:07 -0700 (PDT) Received: from spectre.fritz.box (host-79-47-116-73.retail.telecomitalia.it. [79.47.116.73]) by smtp.gmail.com with ESMTPSA id hz15sm980260ejc.57.2021.05.10.10.15.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:15:06 -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] ALSA: hda/realtek: Add fixup for HP Spectre x360 15-df0xxx Date: Mon, 10 May 2021 19:13:33 +0200 Message-Id: <20210510171332.8313-1-eliadevito@gmail.com> X-Mailer: git-send-email 2.31.1 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 --- 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