Skip to content

[BUG]: Headphone jack (Pin 0x18) not detected on Huawei Matebook (Conexant SN6140, 19e5:3289) #10687

@ciniap

Description

@ciniap

Describe the bug
The headphone jack is not detected on Huawei Matebook. Sound plays through internal speakers even when headphones are plugged in. There is no "Headphones" output in the sound settings.
Diagnosis: I've analyzed the codec dump and dmesg. The BIOS incorrectly marks Pin 0x18 (Headphones) as [N/A], which causes the driver to report hp_outs=0.

To Reproduce
Boot the system on Debian 13 (Trixie).
Plug in any 3.5mm headphones.
Check sound settings or alsamixer: only "Speaker" is available.

Reproduction Rate
100% (All the time).

Expected behavior
The system should detect the headphone jack, create a "Headphones" sink, and automatically mute the internal speakers when headphones are connected.

Impact
Annoyance/Major. I cannot use headphones privately as speakers remain active.

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: 6.12.73+deb13-amd64
    • SOF: Version: 2025.01-1
  2. Name of the topology file
    • Topology: intel/sof-tplg/sof-hda-generic-2ch.tplg
  3. Name of the platform(s) on which the bug is observed.
    • Platform: Intel Alder Lake-P (Huawei laptop)

Screenshots or console output
Console output

  1. Codec dump (Pin 0x18 incorrectly marked as N/A):
    Node 0x18 [Pin Complex] wcaps 0x40058b: Stereo Amp-In
    Pincap 0x0001133c: IN OUT HP EAPD Detect
    Pin Default 0x40f001f0: [N/A] Other at Ext N/A
    Pin-ctls: 0xc0: OUT HP VREF_HIZ

  2. Kernel log (dmesg showing 0 headphones detected):
    snd_hda_codec_conexant ehdaudio0D0: autoconfig for SN6140: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
    snd_hda_codec_conexant ehdaudio0D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0)

  3. Audio Topology (from dmesg):
    Firmware file: intel/sof/sof-adl.ri
    Topology file: intel/sof-tplg/sof-hda-generic-2ch.tplg

dmesg_clean.txt
pactl_clean.txt
alsa-info.sh
codec_clean.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions