Skip to content

[BUG] sof-soundwire Jack event doesn't work properly #5588

@KuwaLee

Description

@KuwaLee

Describe the bug
On my machine 3.5mm does not detect properly (in evtest), while force set cs42l43 Jack Override make it work properly.

To Reproduce

  1. Plug a headphone or headset into the 3.5mm jack
  2. Run sudo evtest and select the /dev/input/event16 device (sof-soundwire Jack)
  3. Observe the reported switch events
$ sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
...
/dev/input/event16:     sof-soundwire Jack
/dev/input/event17:     sof-soundwire HDMI/DP,pcm=5
/dev/input/event18:     sof-soundwire HDMI/DP,pcm=6
/dev/input/event19:     sof-soundwire HDMI/DP,pcm=7
...
Select the device event number [0-19]: 16
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "sof-soundwire Jack"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 164 (KEY_PLAYPAUSE)
    Event code 582 (KEY_VOICECOMMAND)
  Event type 5 (EV_SW)
    Event code 2 (SW_HEADPHONE_INSERT) state 0
    Event code 4 (SW_MICROPHONE_INSERT) state 0
    Event code 6 (SW_LINEOUT_INSERT) state 0
    Event code 7 (SW_JACK_PHYSICAL_INSERT) state 0
    Event code 8 (SW_VIDEOOUT_INSERT) state 0
Properties:
Testing ... (interrupt to exit)
Event: time 1762625239.970797, type 5 (EV_SW), code 6 (SW_LINEOUT_INSERT), value 1
Event: time 1762625239.970797, type 5 (EV_SW), code 7 (SW_JACK_PHYSICAL_INSERT), value 1
Event: time 1762625239.970797, -------------- SYN_REPORT ------------

SW_HEADPHONE_INSERT and SW_MICROPHONE_INSERT don't change when a headphone is plugged in (instead SW_LINEOUT_INSERT and SW_JACK_PHYSICAL_INSERT are being set to 1).

Reproduction Rate
All the time

Expected behavior
At least SW_HEADPHONE_INSERT and SW_MICROPHONE_INSERT (if with mic) should be set while plug in/out

Impact
3.5mm jack malfunction

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).

    • ArchLinux
    • Kernel: 6.17.7-arch1-1
    • SOF: 2025.05.1-1
  2. Name of the topology file

    • Topology: intel/sof-ipc4-tplg/sof-lnl-cs42l43-l0-4ch.tplg
  3. Name of the platform(s) on which the bug is observed.

    • Machine: Lenovo Yoga 9 2-in-1 14ILL10
    • Platform: LNL Ultra 7 258V
    • Codec: Cirrus Logic CS42L43 (SoundWire MIPI interface)

Screenshots or console output

alsa-info.txt

dmesg.txt

amixer_sofsoundwire.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions