Public bug reported:

Hardware:
- Laptop: Huawei [system-product-name]; baseboard: 
nbd-wxx9-m1010-nbd_wxx9_pcb_b4
- BIOS: [version]
- CPU/audio: Intel Tiger Lake-LP, SOF (sof-audio-pci-intel-tgl),
  codec ES8336 (es8316 driver, i2c-ESSX8336:00)
- Topology: intel/sof-tplg/sof-tgl-es8336-dmic2ch-ssp0.tplg
- Firmware: intel/sof/sof-tgl.ri, version 2:2:0-57864

Software:
- Ubuntu 24.04.5 LTS, kernel [uname -r]
- alsa-ucm-conf 1.2.10-1ubuntu5.15 (latest available)
- PipeWire/PulseAudio: [version]

Problem:
Headphone output works and jack detection works (evtest shows correct 
SW_HEADPHONE_INSERT events; "Headphone Jack" control reads on/off correctly; 
PipeWire switches the active port correctly), but the laptop speaker is NOT 
silenced when headphones are plugged in. Sound plays from both.

Default quirk mask is 0x20 (SSP0, DMIC enabled). Only the above DMI
board does not appear to have a quirk entry (Matebook D15 BOD-WXX9
does).

What I tried:
        - quirk override values 0x30, 0x60, 0x70, 0xb0, 0xe0 via modprobe.d 
(confirmed applied in dmesg). With the "JD inverted" flag (0x40) the jack state 
/ PipeWire port availability is reversed (headphones reported unavailable when 
plugged), so detection is correct at default. No value I tried made the speaker 
mute on headphone insertion.
        - Speaker Switch (amixer): With headphones inserted, setting it off has 
no effect. Turning it off with nothing plugged in silences the speaker, but 
re-inserting headphones re-enables the speaker even though the control still 
reads off.

GPIO state (/sys/kernel/debug/gpio, default quirk 0x20, no playback):
        - Headphones plugged:   gpio-16 (speakers-enable) out lo ACTIVE LOW
        - Headphones unplugged: gpio-16 (speakers-enable) out hi ACTIVE LOW
Repeated with music playing: same result.
(Read raw from debugfs; I am not certain how polarity is reported, so please 
interpret.)

Expected: speaker amp disabled while headphones are inserted.

Attachments: alsa-info output, full dmesg (grep sof/es8336), boot
without any modprobe override.

Happy to test patches or other quirk values.
(Message generated with Claude after exhausting all potential userspace 
solutions, i currently don't have the knowledge to verify all the 
interpretations of quirk bits that claude made, so please correct me if 
something's wrong).

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-7.0.0-43-generic 7.0.0-43.43~24.04.1
ProcVersionSignature: Ubuntu 7.0.0-43.43~24.04.1-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.28.3-0ubuntu0.1
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  youcef     1560 F.... pipewire
                      youcef     1564 F.... wireplumber
 /dev/snd/pcmC0D0p:   youcef     1560 F...m pipewire
 /dev/snd/seq:        youcef     1560 F.... pipewire
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Nov 16 00:18:32 2026
InstallationDate: Installed on 2023-02-05 (1379 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 
(20220809.1)
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 002: ID 0408:1040 Quanta Computer, Inc. ov9734_techfront_camera
 Bus 001 Device 003: ID 27c6:5125 Shenzhen Goodix Technology Co.,Ltd. Goodix 
Fingerprint Device 
 Bus 001 Device 004: ID 8087:0026 Intel Corp. AX201 Bluetooth
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
MachineType: HUAWEI NBD-WXX9
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-7.0.0-43-generic 
root=UUID=625d98be-56e1-46e9-baa3-59550c3aaa38 ro quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-7.0.0-43-generic N/A
 linux-backports-modules-7.0.0-43-generic  N/A
 linux-firmware                            20240318.git3b128b60.0ubuntu3.1
SourcePackage: linux-hwe-7.0
UpgradeStatus: Upgraded to noble on 2025-11-16 (364 days ago)
dmi.bios.date: 11/02/2022
dmi.bios.release: 2.31
dmi.bios.vendor: HUAWEI
dmi.bios.version: 2.31
dmi.board.asset.tag: N/A
dmi.board.name: NBD-WXX9-PCB-B4
dmi.board.vendor: HUAWEI
dmi.board.version: M1010
dmi.chassis.asset.tag: N/A
dmi.chassis.type: 10
dmi.chassis.vendor: HUAWEI
dmi.chassis.version: M1010
dmi.ec.firmware.release: 2.31
dmi.modalias: 
dmi:bvnHUAWEI:bvr2.31:bd11/02/2022:br2.31:efr2.31:svnHUAWEI:pnNBD-WXX9:pvrM1010:rvnHUAWEI:rnNBD-WXX9-PCB-B4:rvrM1010:cvnHUAWEI:ct10:cvrM1010:skuC100:pfaMateBookD:
dmi.product.family: MateBook D
dmi.product.name: NBD-WXX9
dmi.product.sku: C100
dmi.product.version: M1010
dmi.sys.vendor: HUAWEI

** Affects: linux-hwe-7.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174552

Title:
  speaker not muted when headpset plugged on Huawei NBD-WXX9 (no DMI
  quirk), speakers-enable GPIO stays asserted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-7.0/+bug/2174552/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to