From patchwork Wed Sep 14 07:28:04 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philipp Jungkamp
X-Patchwork-Id: 12975715
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
aws-us-west-2-korg-lkml-1.web.codeaurora.org
Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by smtp.lore.kernel.org (Postfix) with ESMTPS id EB5E1ECAAD3
for ; Wed, 14 Sep 2022 07:29:30 +0000 (UTC)
Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by alsa0.perex.cz (Postfix) with ESMTPS id AC4E2180D;
Wed, 14 Sep 2022 09:28:38 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AC4E2180D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org;
s=default; t=1663140568;
bh=9L9CgvzeZD2dVPAKr51Own7PFKetJldhmKUIO3fqkNk=;
h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive:
List-Post:List-Help:List-Subscribe:From;
b=hcC5Utaar6g/zC8s9pA3Rcj9lcLaXkTHq8IiBmq9/Y0+VrVlBVjevzj/r+/cylB1n
rDKjO/dFdW+FkHcjssADJ3T2rWlL5QSg5tVMWj1LAymgyHJszB/9MnOWJnM+6F1oAF
NzaNIqLKhF8G0y42NTqsWWnV4OINmotBTB5rJb2c=
Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1])
by alsa1.perex.cz (Postfix) with ESMTP id 2C7C7F800C0;
Wed, 14 Sep 2022 09:28:38 +0200 (CEST)
Received: by alsa1.perex.cz (Postfix, from userid 50401)
id 1EA8AF8014E; Wed, 14 Sep 2022 09:28:35 +0200 (CEST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.18])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by alsa1.perex.cz (Postfix) with ESMTPS id 0392CF800FE
for ; Wed, 14 Sep 2022 09:28:31 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0392CF800FE
Authentication-Results: alsa1.perex.cz;
dkim=pass (1024-bit key) header.d=gmx.net header.i=@gmx.net
header.b="N6mPrcwV"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
s=badeba3b8450; t=1663140509;
bh=9L9CgvzeZD2dVPAKr51Own7PFKetJldhmKUIO3fqkNk=;
h=X-UI-Sender-Class:From:To:Cc:Subject:Date;
b=N6mPrcwVmZORdV5AcCREBpxSWIxTrEJSUGW0awOlNHz2RNTO6uIbp6q63HjjoND2T
dD+OmfoaEkS6kx0ljG0/PrkXQTG+qir80AjuY87vHaQ5vBkjONWxny7WWToyOFiBcH
koqgIgx7PjkXtGNrO95puEV8oMOd7qi1zrCVbtTU=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from yoga9.fritz.box ([87.123.204.248]) by mail.gmx.net (mrgmx005
[212.227.17.190]) with ESMTPSA (Nemesis) id 1MUXtS-1ohGnt1duy-00QUfV; Wed, 14
Sep 2022 09:28:29 +0200
From: Philipp Jungkamp
To: tiwai@suse.com
Subject: [PATCH] ALSA: patch_realtek: Fix Dell Inspiron Plus 16
Date: Wed, 14 Sep 2022 09:28:04 +0200
Message-Id: <20220914072804.39046-1-p.jungkamp@gmx.net>
X-Mailer: git-send-email 2.37.3
MIME-Version: 1.0
X-Provags-ID: V03:K1:Dts4Imt3TDflGgacPvDjzDMjnpd/ElyNwR8rG0Ll/b/vyvuF/+J
QxnhRrQJ4L8b2TuwjO1Ig88WbnOdDPt7b/mD9l4JPZErtBrElW49B6tfwGKB0PTguItnA5H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HCfT1MWIvJLVo3E5QnfZ49ge3PAo4gQFiU/N
aTxRuzqLr1Q+/+CaOUmtXbRZ0zX5WZuWVVE2lpwUuXzFlBDUMIckZIXWZtc5ROftAJQlbd3MJ
2lt/6bBcnLFjCo8LtSPgSAGYFvS8yeHG0ntAjALPbr/20uEaR3MZi3WxKHNMX85/A3FQC2F8K
ROlV8/hdiSR/LVMU0u339Yd77zwYunyVIWTrK6LC0OEmJnrqPuFAsQQb10fJc7yppXn0X3Urn
eb4dx83gmFa8/Us4fsvHfpwKMM
Cc: Philipp Jungkamp , alsa-devel@alsa-project.org,
lakotamm@gmail.com
X-BeenThere: alsa-devel@alsa-project.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Alsa-devel mailing list for ALSA developers -
http://www.alsa-project.org"
List-Unsubscribe:
,
List-Archive:
List-Post:
List-Help:
List-Subscribe:
,
Errors-To: alsa-devel-bounces@alsa-project.org
Sender: "Alsa-devel"
The Dell Inspiron Plus 16 has top speakers connected on NID 0x17, which
the codec reports as unconnected.
These speakers should be connected to the DAC on NID 0x03.
---
I don't possess this Laptop myself. The owner of this Laptop reports
that the speakers are now active, though there are still problem's.
> There are still 2 small issues present:
> 1. 0,5s delay before the top speakers turn on
> 2. Popping sound from headphones 5s after the music stops playing
> and afterwards when it starts playing again. This can be fixed by
> disabling power save on the audio driver [...].
I've only written this patch because the issue seemed similar to that
on my Lenovo Yoga 9 14IAP7.
sound/pci/hda/patch_realtek.c | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
--
2.37.3
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 38930cf5aace..e6f229e418c3 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6896,6 +6896,32 @@ static void alc287_fixup_yoga9_14iap7_bass_spk_pin(struct hda_codec *codec,
}
}
+static void alc295_fixup_dell_inspiron_top_speakers(struct hda_codec *codec,
+ const struct hda_fixup *fix, int action)
+{
+ static const struct hda_pintbl pincfgs[] = {
+ { 0x14, 0x90170151 },
+ { 0x17, 0x90170150 },
+ { }
+ };
+ static const hda_nid_t conn[] = { 0x02, 0x03 };
+ static const hda_nid_t preferred_pairs[] = {
+ 0x14, 0x02,
+ 0x17, 0x03,
+ 0x21, 0x02,
+ 0
+ };
+ struct alc_spec *spec = codec->spec;
+
+ switch (action) {
+ case HDA_FIXUP_ACT_PRE_PROBE:
+ snd_hda_apply_pincfgs(codec, pincfgs);
+ snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn);
+ spec->gen.preferred_dacs = preferred_pairs;
+ break;
+ }
+}
+
enum {
ALC269_FIXUP_GPIO2,
ALC269_FIXUP_SONY_VAIO,
@@ -7137,6 +7163,7 @@ enum {
ALC287_FIXUP_LEGION_16ITHG6,
ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK,
ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN,
+ ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS,
};
/* A special fixup for Lenovo C940 and Yoga Duet 7;
@@ -9066,6 +9093,12 @@ static const struct hda_fixup alc269_fixups[] = {
.chained = true,
.chain_id = ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK,
},
+ [ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS] = {
+ .type = HDA_FIXUP_FUNC,
+ .v.func = alc295_fixup_dell_inspiron_top_speakers,
+ .chained = true,
+ .chain_id = ALC269_FIXUP_DELL4_MIC_NO_PRESENCE,
+ },
};
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -9165,6 +9198,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x1028, 0x0a9d, "Dell Latitude 5430", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x0a9e, "Dell Latitude 5430", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x0b19, "Dell XPS 15 9520", ALC289_FIXUP_DUAL_SPK),
+ SND_PCI_QUIRK(0x1028, 0x0b71, "Dell Inspiron 16 Plus 7620", ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS),
SND_PCI_QUIRK(0x1028, 0x164a, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x164b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2),