Linux Sound subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Phil McSwiggan" <GitMcSwig@gmail.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH v3] ALSA: hda/realtek: Fix woofer bass on Dell Inspiron 16 7640 2-in-1
Date: Sun, 06 Dec 2026 12:23:39 +0000	[thread overview]
Message-ID: <sashiko-outbox-252411@kernel.org> (raw)
In-Reply-To: <20261206-dell-7640-woofers-v3-1-dc3629986aba@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] ALSA: hda/realtek: unrenamed shared-DAC Front volume in Dell
  7640 fixup
--

commit 7bfe6345fa59f0e634b2c7c0f608c06eccd40c24
Author: Phil McSwiggan <GitMcSwig@gmail.com>

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

This commit adds a new fixup for the Dell Inspiron 16 7640 2-in-1 that
assigns the main speakers (0x14) and headphones (0x21) to DAC 0x02 and
the TAS2781 woofers (0x17) to DAC 0x03.

> diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
> index a4b4333878896..ad5a0305f0336 100644
> --- a/sound/hda/codecs/realtek/alc269.c
> +++ b/sound/hda/codecs/realtek/alc269.c
> @@ -3952,6 +3952,35 @@ static void alc295_fixup_dell_inspiron_top_speakers(struct hda_codec *codec,
>  	}
>  }
>  
> +/*
> + * Main speakers on NID 0x14 share DAC 0x02 with the headphone. The woofers
> + * behind the TAS2781 amps on NID 0x17 go on DAC 0x03, as sharing DAC 0x02
> + * with NID 0x14 loses bass.
> + */
> +static void alc295_fixup_dell_tas2781_bass_spk(struct hda_codec *codec,
> +					       const struct hda_fixup *fix, int action)
> +{
> +	static const struct hda_pintbl pincfgs[] = {
> +		{ 0x14, 0x90170150 }, /* speaker */
> +		{ 0x17, 0x90170151 }, /* bass speaker */
> +		{ }
> +	};
> +	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;
> +
> +	if (action == 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;
> +	}
> +}

[Severity: Medium]
Does sharing DAC 0x02 between the main speakers (0x14) and headphones
(0x21) without renaming the generated volume controls break headphone
playback on non-UCM setups?

Because hp_paths[0] shares DAC 0x02 with out_paths[0] and gets no volume
control of its own, get_line_out_pfx() in sound/hda/codecs/generic.c
falls back from "Speaker" to "Front".  The resulting volume controls are
"Front Playback Volume" and "Bass Speaker Playback Volume", not
"Speaker" and "Bass Speaker" as stated in the commit message.

PulseAudio and non-UCM PipeWire ACP treat "Front Playback Volume" as a
speaker/line-out control and mute or zero it when switching to
headphones, silencing headphone output.

Handling HDA_FIXUP_ACT_BUILD with rename_ctl() to rename "Front Playback
Volume" to "DAC1 Playback Volume" and "Bass Speaker Playback Volume" to
"DAC2 Playback Volume", as alc285_fixup_thinkpad_x1_gen7() does, keeps
non-UCM mixers on Master Playback Volume instead.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261206-dell-7640-woofers-v3-1-dc3629986aba@gmail.com?part=1

      reply	other threads:[~2026-12-06 12:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-06 12:03 [PATCH v3] ALSA: hda/realtek: Fix woofer bass on Dell Inspiron 16 7640 2-in-1 Phil McSwiggan via B4 Relay
2026-12-06 12:23 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-252411@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=GitMcSwig@gmail.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox