• Bug#1108069: linux-image-6.12.32-amd64: Builtin recognized microphone A

    From Igor Tamara@1:229/2 to All on Fri Jun 20 04:50:01 2025
    XPost: linux.debian.bugs.dist
    From: igor.tamara@gmail.com

    This is a multi-part MIME message sent by reportbug.


    Package: src:linux
    Version: 6.12.32-1
    Severity: normal
    Tags: a11y

    Dear Maintainer,

    The builtin microphone on my Asus X507UA does not record, is
    recognized and some time ago it worked on Bookworm with image-6.1.0-31,
    newer images are able to record when appending snd_hda_intel.model=1043:1271
    to the boot as a workaround.

    The images that work with the boot option appended are, but not without
    it are:

    linux-image-6.15-amd64
    linux-image-6.12.32-amd64
    linux-image-6.1.0-37-amd64 linux-image-6.1.0-0.a.test-amd64-unsigned_6.1.129-1a~test_amd64.deb
    referenced by https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1100928
    Also compiled from upstream 6.12.22 and 6.1.133 with the same result

    The image linux-image-6.1.0-31-amd64 worked properly, the problem was introduced in 129 and the result of the bisect was

    d26408df0e25f2bd2808d235232ab776e4dd08b9 is the first bad commit
    commit d26408df0e25f2bd2808d235232ab776e4dd08b9
    Author: Kuan-Wei Chiu <visitorckw@gmail.com>
    Date: Wed Jan 29 00:54:15 2025 +0800

    ALSA: hda: Fix headset detection failure due to unstable sort

    commit 3b4309546b48fc167aa615a2d881a09c0a97971f upstream.

    The auto_parser assumed sort() was stable, but the kernel's sort() uses
    heapsort, which has never been stable. After commit 0e02ca29a563
    ("lib/sort: optimize heapsort with double-pop variation"), the order of
    equal elements changed, causing the headset to fail to work.

    Fix the issue by recording the original order of elements before
    sorting and using it as a tiebreaker for equal elements in the
    comparison function.

    Fixes: b9030a005d58 ("ALSA: hda - Use standard sort function in hda_auto_parser.c")
    Reported-by: Austrum <austrum.lab@gmail.com>
    Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219158
    Tested-by: Austrum <austrum.lab@gmail.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
    Link: https://patch.msgid.link/20250128165415.643223-1-visitorckw@gmail.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    sound/pci/hda/hda_auto_parser.c | 8 +++++++-
    sound/pci/hda/hda_auto_parser.h | 1 +
    2 files changed, 8 insertions(+), 1 deletion(-)

    I'm attaching the output of alsa-info_alsa-info.sh script

    Please let me know if I can provide more information.


    -- Package-specific info:
    ** Version:
    Linux version 6.12.32-amd64 (debian-kernel@lists.debian.org) (x86_64-linux-gnu-gcc-14 (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44) #1 SMP PREEMPT_DYNAMIC Debian 6.12.32-1 (2025-06-07)

    ** Command line:
    BOOT_IMAGE=/boot/vmlinuz-6.12.32-amd64 root=UUID=045188fa-a00f-47a4-ba29-e5de02b21add ro quiet splash

    ** Not tainted

    ** Kernel log:
    [ 5.166203] asus_wmi: BIOS WMI version: 9.0
    [ 5.166237] asus_wmi: SFUN value: 0x21
    [ 5.166242] asus-nb-wmi asus-nb-wmi: Detected ATK, not ASUSWMI, use DSTS
    [ 5.180341] videodev: Linux video capture interface: v2.00
    [ 5.182756] input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input17
    [ 5.182824] intel_rapl_common: Found RAPL domain package
    [ 5.182827] intel_rapl_common: Found RAPL domain dram
    [ 5.187245] RAPL PMU: API unit is 2^-32 Joules, 4 fixed counters, 655360 ms ovfl timer
    [ 5.187249] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules
    [ 5.187251] RAPL PMU: hw unit of domain package 2^-14 Joules
    [ 5.187252] RAPL PMU: hw unit of domain dram 2^-14 Joules
    [ 5.187253] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
    [ 5.189410] asus_wmi: fan_curve_get_factory_default (0x00110024) failed: -19 [ 5.189546] asus_wmi: fan_curve_get_factory_default (0x00110025) failed: -19 [ 5.189678] asus_wmi: fan_curve_get_factory_default (0x00110032) failed: -19 [ 5.197850] ACPI: battery: new extension: ASUS Battery Extension
    [ 5.224564] intel_rapl_common: Found RAPL domain package
    [ 5.224572] intel_rapl_common: Found RAPL domain core
    [ 5.224574] intel_rapl_common: Found RAPL domain uncore
    [ 5.224576] intel_rapl_common: Found RAPL domain dram
    [ 5.228377] cryptd: max_cpu_qlen set to 1000
    [ 5.234504] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_ops [i915])
    [ 5.253018] Bluetooth: Core ver 2.22
    [ 5.253056] NET: Registered PF_BLUETOOTH protocol family
    [ 5.253059] Bluetooth: HCI device and connection manager initialized
    [ 5.253070] Bluetooth: HCI socket layer initialized
    [ 5.253074] Bluetooth: L2CAP socket layer initialized
    [ 5.253080] Bluetooth: SCO socket layer initialized
    [ 5.290727] usb 1-6: Found UVC 1.00 device USB2.0 VGA UVC WebCam (13d3:5a11) [ 5.290979] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [ 5.291229] Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf'
    [ 5.291476] Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'

    [continued in next message]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Salvatore Bonaccorso@1:229/2 to Igor Tamara on Wed Jun 25 20:50:01 2025
    XPost: linux.debian.bugs.dist, linux.kernel
    From: carnil@debian.org

    Hi Igor,

    [For context, there was a regression report in Debian at https://bugs.debian.org/1108069]

    On Thu, Jun 19, 2025 at 09:36:13PM -0500, Igor Tamara wrote:
    Package: src:linux
    Version: 6.12.32-1
    Severity: normal
    Tags: a11y

    Dear Maintainer,

    The builtin microphone on my Asus X507UA does not record, is
    recognized and some time ago it worked on Bookworm with image-6.1.0-31,
    newer images are able to record when appending snd_hda_intel.model=1043:1271 to the boot as a workaround.

    The images that work with the boot option appended are, but not without
    it are:

    linux-image-6.15-amd64
    linux-image-6.12.32-amd64
    linux-image-6.1.0-37-amd64 linux-image-6.1.0-0.a.test-amd64-unsigned_6.1.129-1a~test_amd64.deb referenced by https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1100928
    Also compiled from upstream 6.12.22 and 6.1.133 with the same result

    The image linux-image-6.1.0-31-amd64 worked properly, the problem was introduced in 129 and the result of the bisect was

    d26408df0e25f2bd2808d235232ab776e4dd08b9 is the first bad commit
    commit d26408df0e25f2bd2808d235232ab776e4dd08b9
    Author: Kuan-Wei Chiu <visitorckw@gmail.com>
    Date: Wed Jan 29 00:54:15 2025 +0800

    ALSA: hda: Fix headset detection failure due to unstable sort

    commit 3b4309546b48fc167aa615a2d881a09c0a97971f upstream.

    The auto_parser assumed sort() was stable, but the kernel's sort() uses
    heapsort, which has never been stable. After commit 0e02ca29a563
    ("lib/sort: optimize heapsort with double-pop variation"), the order of
    equal elements changed, causing the headset to fail to work.

    Fix the issue by recording the original order of elements before
    sorting and using it as a tiebreaker for equal elements in the
    comparison function.

    Fixes: b9030a005d58 ("ALSA: hda - Use standard sort function in hda_auto_parser.c")
    Reported-by: Austrum <austrum.lab@gmail.com>
    Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219158
    Tested-by: Austrum <austrum.lab@gmail.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
    Link: https://patch.msgid.link/20250128165415.643223-1-visitorckw@gmail.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    sound/pci/hda/hda_auto_parser.c | 8 +++++++-
    sound/pci/hda/hda_auto_parser.h | 1 +
    2 files changed, 8 insertions(+), 1 deletion(-)

    I'm attaching the output of alsa-info_alsa-info.sh script

    Please let me know if I can provide more information.

    Might you be able to try please the attached patch to see if it fixes
    the issue?

    Regards,
    Salvatore

    From da92704b8bce54678c46501260efee50de16058f Mon Sep 17 00:00:00 2001
    From: Salvatore Bonaccorso <carnil@debian.org>
    Date: Wed, 25 Jun 2025 20:41:28 +0200
    Subject: [PATCH] ALSA: hda/realtek: Fix built-in mic on ASUS VivoBook X507UAR

    The built-in mic of ASUS VivoBook X507UAR is broken recently by the fix
    of the pin sort. The fixup ALC256_FIXUP_ASUS_MIC_NO_PRESENCE is working
    for addressing the regression, too.

    Fixes: 3b4309546b48 ("ALSA: hda: Fix headset detection failure due to unstable sort")
    Signed-off-by: Salvatore Bonaccorso <carnil@debian.org>
    ---
    sound/pci/hda/patch_realtek.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 2e1618494c20..3613ed0aa683 100644
    --- a/sound/pci/hda/patch_realtek.c
    +++ b/sound/pci/hda/patch_realtek.c
    @@ -11026,6 +11026,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
    SND_PCI_QUIRK(0x1043, 0x1df3, "ASUS UM5606WA", ALC294_FIXUP_BASS_SPEAKER_15),
    SND_PCI_QUIRK(0x1043, 0x1264, "ASUS UM5606KA", ALC294_FIXUP_BASS_SPEAKER_15),
    SND_PCI_QUIRK(0x1043, 0x1e02, "ASUS UX3402ZA", ALC245_FIXUP_CS35L41_SPI_2),
    + SND_PCI_QUIRK(0x1043, 0x1e10, "ASUS VivoBook X507UAR", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
    SND_PCI_QUIRK(0x1043, 0x1e11, "ASUS Zephyrus G15", ALC289_FIXUP_ASUS_GA502),
    SND_PCI_QUIRK(0x1043, 0x1e12, "ASUS UM3402", ALC287_FIXUP_CS35L41_I2C_2),
    SND_PCI_QUIRK(0x1043, 0x1e1f, "ASUS Vivobook 15 X1504VAP", ALC2XX_FIXUP_HEADSET_MIC),
    --
    2.50.0

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate
  • From =?UTF-8?B?SWdvciBUw6FtYXJh?=@1:229/2 to All on Thu Jun 26 03:00:01 2025
    XPost: linux.debian.bugs.dist, linux.kernel
    From: igor.tamara@gmail.com

    Hi Salvatore,


    El mié, 25 jun 2025 a las 13:47, Salvatore Bonaccorso
    (<carnil@debian.org>) escribió:

    Hi Igor,

    [For context, there was a regression report in Debian at https://bugs.debian.org/1108069]

    On Thu, Jun 19, 2025 at 09:36:13PM -0500, Igor Tamara wrote:
    Package: src:linux
    Version: 6.12.32-1
    Severity: normal
    Tags: a11y

    Dear Maintainer,

    The builtin microphone on my Asus X507UA does not record, is
    recognized and some time ago it worked on Bookworm with image-6.1.0-31, newer images are able to record when appending snd_hda_intel.model=1043:1271
    to the boot as a workaround.

    The images that work with the boot option appended are, but not without
    it are:

    linux-image-6.15-amd64
    linux-image-6.12.32-amd64
    linux-image-6.1.0-37-amd64 linux-image-6.1.0-0.a.test-amd64-unsigned_6.1.129-1a~test_amd64.deb referenced by https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1100928 Also compiled from upstream 6.12.22 and 6.1.133 with the same result

    The image linux-image-6.1.0-31-amd64 worked properly, the problem was introduced in 129 and the result of the bisect was

    d26408df0e25f2bd2808d235232ab776e4dd08b9 is the first bad commit
    commit d26408df0e25f2bd2808d235232ab776e4dd08b9
    Author: Kuan-Wei Chiu <visitorckw@gmail.com>
    Date: Wed Jan 29 00:54:15 2025 +0800

    ALSA: hda: Fix headset detection failure due to unstable sort

    commit 3b4309546b48fc167aa615a2d881a09c0a97971f upstream.

    The auto_parser assumed sort() was stable, but the kernel's sort() uses
    heapsort, which has never been stable. After commit 0e02ca29a563
    ("lib/sort: optimize heapsort with double-pop variation"), the order of
    equal elements changed, causing the headset to fail to work.

    Fix the issue by recording the original order of elements before
    sorting and using it as a tiebreaker for equal elements in the
    comparison function.

    Fixes: b9030a005d58 ("ALSA: hda - Use standard sort function in hda_auto_parser.c")
    Reported-by: Austrum <austrum.lab@gmail.com>
    Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219158
    Tested-by: Austrum <austrum.lab@gmail.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
    Link: https://patch.msgid.link/20250128165415.643223-1-visitorckw@gmail.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    sound/pci/hda/hda_auto_parser.c | 8 +++++++-
    sound/pci/hda/hda_auto_parser.h | 1 +
    2 files changed, 8 insertions(+), 1 deletion(-)

    I'm attaching the output of alsa-info_alsa-info.sh script

    Please let me know if I can provide more information.

    Might you be able to try please the attached patch to see if it fixes
    the issue?


    I recompiled and the mic is recording without issues when running on
    6.1.133 and 6.12.32

    Thank you everyone for all your hard work.

    Regards,
    Salvatore


    --
    http://igor.tamarapatino.org

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)