All of lore.kernel.org
 help / color / mirror / Atom feed
From: Salvatore Bonaccorso <carnil@debian.org>
To: 1100928@bugs.debian.org,
	"C.D. MacEachern" <craig.daniel.maceachern@gmail.com>
Cc: Kuan-Wei Chiu <visitorckw@gmail.com>,
	Takashi Iwai <tiwai@suse.de>,
	linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
	regressions@lists.linux.dev
Subject: Re: Bug#1100928: [regression 6.1.y] microphone no longer records (on VivoBook_ASUSLaptop TP401MARB_J401MA)
Date: Tue, 25 Mar 2025 22:02:35 +0100	[thread overview]
Message-ID: <Z-MZ6yu6oPDw9lkL@eldamar.lan> (raw)
In-Reply-To: <Z-MMsp3XJyNHOlma@eldamar.lan>

[-- Attachment #1: Type: text/plain, Size: 2222 bytes --]

Hi,

On Tue, Mar 25, 2025 at 09:06:10PM +0100, Salvatore Bonaccorso wrote:
> Hi Craig, all
> 
> On Sat, Mar 22, 2025 at 08:55:17AM +0100, Salvatore Bonaccorso wrote:
> > Control: tags -1 + moreinfo upstream
> > 
> > Hi
> > 
> > On Thu, Mar 20, 2025 at 10:55:32AM -0400, C.D. MacEachern wrote:
> > > Package: src:linux
> > > Version: 6.1.129-1
> > > Severity: important
> > > X-Debbugs-Cc: craig.daniel.maceachern@gmail.com
> > > 
> > > Dear Maintainer,
> > > 
> > > After update to kernel image 6.1.0-32 on Debian bookworm my builtin microphone
> > > would no longer record
> > > anything - no levels detected and I checked for muted channels with tools like
> > > pavucontrol and alsamixer.
> > > 
> > > I found that my microphone was using the `snd_hda_intel` driver in the kernel,
> > > so tried rebooting and choosing
> > > the 6.1.0-31 kernel instead to rule out hardware issue. Previous kernel works
> > > as expected, mic records and playback
> > > is fine, so some update related to this driver, or the driver itself was
> > > updated and no longer works correctly with
> > > the builtin microphone.
> > 
> > Thanks for reproting the issue (leaving boot log context, hw used,
> > below for context).
> > 
> > I think this might be introduced with 3b4309546b48 ("ALSA: hda: Fix
> > headset detection failure due to unstable sort") wich landed as well
> > in 6.1.129.
> > 
> > If you revert that commit on top of 6.1.129, does that fixes your
> > issue? Would you be able to test this?
> > 
> > #regzbot introduced: v6.1.128..v6.1.129
> > #regzbot link: https://bugs.debian.org/1100928
> > 
> > The solution might be similar to c6557ccf8094 ("ALSA: hda/realtek: Fix
> > microphone regression on ASUS N705UD") from 6.14-rc5 (which got
> > backported to 6.13.6, 6.12.18, 6.6.81 but not yet 6.1.y).
> 
> In case you need help in trying a kernel build with the revet applied,
> I'm attaching the revert patch. With that you can follow
> https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#id-1.6.6.4
> to build a kernel using the `test-patches` helper script to test with.
> 
> Is that enough help so we can confirm the breaking commit?

And now really with the patch attached.

Regards,
Salvatore

[-- Attachment #2: 0001-Revert-ALSA-hda-Fix-headset-detection-failure-due-to.patch --]
[-- Type: text/x-diff, Size: 1870 bytes --]

From 99eeccf9207811eb07986f441020b61beffa759b Mon Sep 17 00:00:00 2001
From: Salvatore Bonaccorso <carnil@debian.org>
Date: Tue, 25 Mar 2025 21:02:57 +0100
Subject: [PATCH] Revert "ALSA: hda: Fix headset detection failure due to
 unstable sort"

This reverts commit 3b4309546b48fc167aa615a2d881a09c0a97971f.
---
 sound/pci/hda/hda_auto_parser.c | 8 +-------
 sound/pci/hda/hda_auto_parser.h | 1 -
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/sound/pci/hda/hda_auto_parser.c b/sound/pci/hda/hda_auto_parser.c
index 58b2e25c448e..7c6b1fe8dfcc 100644
--- a/sound/pci/hda/hda_auto_parser.c
+++ b/sound/pci/hda/hda_auto_parser.c
@@ -80,11 +80,7 @@ static int compare_input_type(const void *ap, const void *bp)
 
 	/* In case one has boost and the other one has not,
 	   pick the one with boost first. */
-	if (a->has_boost_on_pin != b->has_boost_on_pin)
-		return (int)(b->has_boost_on_pin - a->has_boost_on_pin);
-
-	/* Keep the original order */
-	return a->order - b->order;
+	return (int)(b->has_boost_on_pin - a->has_boost_on_pin);
 }
 
 /* Reorder the surround channels
@@ -404,8 +400,6 @@ int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
 	reorder_outputs(cfg->speaker_outs, cfg->speaker_pins);
 
 	/* sort inputs in the order of AUTO_PIN_* type */
-	for (i = 0; i < cfg->num_inputs; i++)
-		cfg->inputs[i].order = i;
 	sort(cfg->inputs, cfg->num_inputs, sizeof(cfg->inputs[0]),
 	     compare_input_type, NULL);
 
diff --git a/sound/pci/hda/hda_auto_parser.h b/sound/pci/hda/hda_auto_parser.h
index 8bb8202cf284..df63d66af1ab 100644
--- a/sound/pci/hda/hda_auto_parser.h
+++ b/sound/pci/hda/hda_auto_parser.h
@@ -35,7 +35,6 @@ struct auto_pin_cfg_item {
 	unsigned int is_headset_mic:1;
 	unsigned int is_headphone_mic:1; /* Mic-only in headphone jack */
 	unsigned int has_boost_on_pin:1;
-	int order;
 };
 
 struct auto_pin_cfg;
-- 
2.49.0


  reply	other threads:[~2025-03-25 21:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <174248253267.1718.4037292692790831697.reportbug@x>
2025-03-22  7:55 ` [regression 6.1.y] microphone no longer records (on VivoBook_ASUSLaptop TP401MARB_J401MA) Salvatore Bonaccorso
2025-03-25 20:06   ` Bug#1100928: " Salvatore Bonaccorso
2025-03-25 21:02     ` Salvatore Bonaccorso [this message]
2025-03-26  6:50     ` Takashi Iwai
     [not found] ` <CAJ8x=4jNhsjw_s-p5FXBk9WScPHEdUMZ0tXnhCiya8fCf_PH7w@mail.gmail.com>
2025-03-28 23:16   ` Salvatore Bonaccorso
2025-03-29 12:06     ` Takashi Iwai
2025-04-01 18:21       ` C.D. MacEachern
2025-04-02  7:39         ` Takashi Iwai
     [not found]           ` <CAJ8x=4gN1fH6chp4C3jX1OXq2-JhbP5yUzLbqvWrAJ-u=+VNhw@mail.gmail.com>
2025-04-04  6:54             ` Takashi Iwai
2025-04-04 19:23               ` Salvatore Bonaccorso
     [not found] ` <CAJ8x=4gQQeh+yuUrBDT3P_ZkWRT+7pPujq-ZF6Fcao0V7kohFw@mail.gmail.com>
2025-04-05  6:28   ` Salvatore Bonaccorso
     [not found] ` <CAJ8x=4hmi0Afneepe15Ef-kzVZO+uyw5Row+Cooob_QR=DpwQg@mail.gmail.com>
2025-04-05 14:24   ` Salvatore Bonaccorso
2025-04-05 19:20     ` Takashi Iwai
2025-04-09 17:14       ` Salvatore Bonaccorso

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=Z-MZ6yu6oPDw9lkL@eldamar.lan \
    --to=carnil@debian.org \
    --cc=1100928@bugs.debian.org \
    --cc=craig.daniel.maceachern@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=regressions@lists.linux.dev \
    --cc=tiwai@suse.de \
    --cc=visitorckw@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.