Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda/realtek: Fix woofers on Dell Inspiron 16 7640 2-in-1
@ 2026-12-04 20:31 GitMcSwig via B4 Relay
  2026-12-04 20:46 ` sashiko-bot
  2026-12-04 21:18 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: GitMcSwig via B4 Relay @ 2026-12-04 20:31 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linux-kernel, stable, GitMcSwig

From: GitMcSwig <GitMcSwig@gmail.com>

The Dell Inspiron 16 7640 2-in-1 (SSID 1028:0c96) drives its woofers
from pin 0x17 through two TAS2781 amps. ALC295_FIXUP_DELL_TAS2781_I2C
chains to ALC289_FIXUP_DUAL_SPK, which ties pin 0x17 to DAC 0x02, and
the woofers stay silent.

Keep the TAS2781 binding but chain to
ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS, which puts pin 0x17 on DAC 0x03
as on the earlier Inspiron 16 Plus 7620/7630. All four speakers then
play. Also replace the "Dell Polaris 2in1" codename with the model name.

Fixes: ec8f26092e52 ("ALSA: hda/realtek: Add ALC295 Dell TAS2781 I2C fixup")
Cc: stable@vger.kernel.org
Signed-off-by: GitMcSwig <GitMcSwig@gmail.com>
---
Tested on the 7640 2-in-1 with 7.3.4 and 7.3.6: all four speakers,
volume, mute and headphone auto-mute work. 1028:0c94 ("Dell Polaris 3
metal") uses the same fixup and may need this too, but I have no way to
test it.

With this routing the generic parser exposes the woofers as "Front"
(volume) / "Speaker" (switch) and the main speakers as "Bass Speaker".
Master drives both, so it works as is, but I can rework it with a
dedicated fixup if you'd prefer clearer names.
---
 sound/hda/codecs/realtek/alc269.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index a4b433387..f2d6fdd64 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -4594,6 +4594,7 @@ enum {
 	ALC287_FIXUP_ASUS_ALLY_X_SPEAKER,
 	ALC287_FIXUP_ASUS_ALLY_X_I2C,
 	ALC295_FIXUP_DELL_TAS2781_I2C,
+	ALC295_FIXUP_DELL_TAS2781_I2C_TOP_SPK,
 	ALC245_FIXUP_TAS2781_SPI_2,
 	ALC287_FIXUP_TXNW2781_I2C,
 	ALC287_FIXUP_TXNW2781_I2C_ASUS,
@@ -6312,6 +6313,12 @@ static const struct hda_fixup alc269_fixups[] = {
 		.chained = true,
 		.chain_id = ALC289_FIXUP_DUAL_SPK
 	},
+	[ALC295_FIXUP_DELL_TAS2781_I2C_TOP_SPK] = {
+		.type = HDA_FIXUP_FUNC,
+		.v.func = tas2781_fixup_tias_i2c,
+		.chained = true,
+		.chain_id = ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS
+	},
 	[ALC294_FIXUP_ASUS_GU502_PINS] = {
 		.type = HDA_FIXUP_PINS,
 		.v.pins = (const struct hda_pintbl[]) {
@@ -7769,7 +7776,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1028, 0x0c4d, "Dell", ALC287_FIXUP_CS35L41_I2C_4),
 	SND_PCI_QUIRK(0x1028, 0x0c90, "Alienware x16 R2", ALC289_FIXUP_DUAL_SPK),
 	SND_PCI_QUIRK(0x1028, 0x0c94, "Dell Polaris 3 metal", ALC295_FIXUP_DELL_TAS2781_I2C),
-	SND_PCI_QUIRK(0x1028, 0x0c96, "Dell Polaris 2in1", ALC295_FIXUP_DELL_TAS2781_I2C),
+	SND_PCI_QUIRK(0x1028, 0x0c96, "Dell Inspiron 16 7640 2-in-1", ALC295_FIXUP_DELL_TAS2781_I2C_TOP_SPK),
 	SND_PCI_QUIRK(0x1028, 0x0cbd, "Dell Oasis 13 CS MTL-U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
 	SND_PCI_QUIRK(0x1028, 0x0cbe, "Dell Oasis 13 2-IN-1 MTL-U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
 	SND_PCI_QUIRK(0x1028, 0x0cbf, "Dell Oasis 13 Low Weight MTU-L", ALC289_FIXUP_DELL_CS35L41_SPI_2),

---
base-commit: 9cef9067672e1bdd71b397264d03515ffed099f7
change-id: 20261204-dell-7640-woofers-13ab412c7cb7

Best regards,
-- 
GitMcSwig <GitMcSwig@gmail.com>



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ALSA: hda/realtek: Fix woofers on Dell Inspiron 16 7640 2-in-1
  2026-12-04 20:31 [PATCH] ALSA: hda/realtek: Fix woofers on Dell Inspiron 16 7640 2-in-1 GitMcSwig via B4 Relay
@ 2026-12-04 20:46 ` sashiko-bot
  2026-12-04 21:18 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-12-04 20:46 UTC (permalink / raw)
  To: GitMcSwig; +Cc: linux-sound

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] ALSA: hda/realtek: Reused top-speaker quirk misroutes HP DAC
  and 4ch PCM
--

commit 97466209d0b2257a62e593e89931a383b174df4f
Author: GitMcSwig <GitMcSwig@gmail.com>

ALSA: hda/realtek: Fix woofers on Dell Inspiron 16 7640 2-in-1

This commit adds ALC295_FIXUP_DELL_TAS2781_I2C_TOP_SPK chaining
tas2781_fixup_tias_i2c() to ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS, and
switches the Dell Inspiron 16 7640 2-in-1 (1028:0c96) quirk to use it.

> diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
> index a4b4333878896..f2d6fdd64630f 100644
> --- a/sound/hda/codecs/realtek/alc269.c
> +++ b/sound/hda/codecs/realtek/alc269.c

[ ... ]

> @@ -6312,6 +6313,12 @@ static const struct hda_fixup alc269_fixups[] = {
>  		.chained = true,
>  		.chain_id = ALC289_FIXUP_DUAL_SPK
>  	},
> +	[ALC295_FIXUP_DELL_TAS2781_I2C_TOP_SPK] = {
> +		.type = HDA_FIXUP_FUNC,
> +		.v.func = tas2781_fixup_tias_i2c,
> +		.chained = true,
> +		.chain_id = ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS
> +	},

[Severity: Medium]
Does chaining to ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKERS regress headphone
volume control and 4-channel playback routing?

alc295_fixup_dell_inspiron_top_speakers() puts woofer pin 0x17 (DAC 0x03)
at sequence 0 and main speaker pin 0x14 (DAC 0x02, shared with headphone
pin 0x21) at sequence 1:

sound/hda/codecs/realtek/alc269.c:alc295_fixup_dell_inspiron_top_speakers() {
	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
	};
    ...
}

In get_line_out_pfx(), the generic parser assumes a headphone pin without
its own volume control shares channel 0's DAC.  That exposes woofer DAC
0x03 as Front Playback Volume and the shared speaker/headphone DAC 0x02 as
Bass Speaker Playback Volume.

Standard PulseAudio and PipeWire headphone profiles disable Bass Speaker
volume while adjusting Front Playback Volume, muting headphones on DAC
0x02 (the same mismatch noted in alc285_fixup_thinkpad_x1_gen7()).

On 4-channel playback, snd_hda_multi_out_analog_prepare() sets up
hp_out_nid[0] (DAC 0x02) at channel offset 0, then the surrounds loop
overwrites nids[1] (also DAC 0x02) to offset 2, sending front channels to
the woofers and rear/LFE channels to both main speakers and headphones.

A dedicated fixup assigning pin 0x14 to sequence 0 (0x90170150) and pin
0x17 to sequence 1 (0x90170151) with the same preferred_dacs aligns main
speakers and headphones on primary DAC 0x02 and puts woofers on secondary
DAC 0x03.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-dell-7640-woofers-v1-1-4366d1074041@gmail.com?part=1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ALSA: hda/realtek: Fix woofers on Dell Inspiron 16 7640 2-in-1
  2026-12-04 20:31 [PATCH] ALSA: hda/realtek: Fix woofers on Dell Inspiron 16 7640 2-in-1 GitMcSwig via B4 Relay
  2026-12-04 20:46 ` sashiko-bot
@ 2026-12-04 21:18 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-12-04 21:18 UTC (permalink / raw)
  To: GitMcSwig
  Cc: Jaroslav Kysela, Takashi Iwai, linux-sound, linux-kernel, stable

On Fri, Dec 04, 2026 at 08:31:06PM +0000, GitMcSwig via B4 Relay wrote:
> From: GitMcSwig <GitMcSwig@gmail.com>


Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- It looks like you did not use your "real" name for the patch on either
  the Signed-off-by: line, or the From: line (both of which have to
  match).  Please read the kernel file,
  Documentation/process/submitting-patches.rst for how to do this
  correctly.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-04 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 20:31 [PATCH] ALSA: hda/realtek: Fix woofers on Dell Inspiron 16 7640 2-in-1 GitMcSwig via B4 Relay
2026-12-04 20:46 ` sashiko-bot
2026-12-04 21:18 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox