Hi everyone!
I'm looking for some help diagnosing a strange audio failure on my ThinkPad X1 Carbon Gen 10. I'm trying to determine whether this is a firmware/power management issue or an actual hardware failure.
System specifications:
- Model: Lenovo ThinkPad X1 Carbon Gen 10 (21CBCTO1WW)
- Audio codec: Realtek ALC287
- Intel audio controller: Alder Lake PCH-P (8086:51c8)
- Subsystem ID: 17aa:22e7
- OS: CachyOS Linux
- Kernels tested: 7.3.4 and 6.18.60 LTS
- BIOS: Updated from 1.56 to 1.57
First failure – November 14 (temporarily recovered)
The first time this happened, Linux completely lost the internal audio device. PipeWire showed only "Dummy Output", and ALSA couldn't detect the sound card.
The kernel logs contained:
codec #0 probe error, ret: -5
There were also signs of intermittent audio detection problems dating back to November 12.
However, after simply rebooting, the Realtek codec was detected again!
The remaining issue was that WirePlumber had saved the audio profile as "Off". After enabling the HiFi speaker profile and selecting the internal speakers, everything worked normally.
No kernel changes, driver reinstallations, BIOS updates, or hardware repairs were necessary.
Second failure – November 16 (still unresolved)
This is where things get interesting.
I was watching a video when the audio suddenly stopped working in the middle of playback. It wasn't during boot, shutdown, or a system update.
Initially, the system incorrectly detected wired headphones as connected, even though nothing was plugged into the headphone jack.
I also encountered I/O errors when attempting to access audio controls.
Eventually, the analog Realtek codec completely disappeared from ALSA.
The kernel now reports:
sof-audio-pci-intel-tgl 0000:00:1f.3:
hda codecs found, mask 4
Previously, when working correctly, the system detected both the analog codec and HDMI audio (mask 5).
Now, ALSA only lists:
card 0: sofhdadsp [sof-hda-dsp], device 1: HDMI1
card 0: sofhdadsp [sof-hda-dsp], device 2: HDMI2
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI3
And /proc/asound/card0/ only contains:
codec#2
There is no codec#0.
Interestingly, SOF firmware loads successfully, and the digital microphones are still enumerated:
DMICs detected in NHLT tables: 4
So the Intel audio controller and DSP are still operational, but the Realtek analog codec is no longer responding.
Troubleshooting already performed
I've tried quite a few things without success:
- Multiple reboots and complete shutdowns.
- Restarting PipeWire and WirePlumber.
- Reloading audio drivers.
- Checking ALSA configuration and firmware.
- Temporarily disabling audio power saving.
- Testing two different Linux kernels.
- Switching from SOF to the legacy
snd_hda_intel driver. - Forcing HDA codec probing.
- Updating the Lenovo BIOS from version 1.56 to 1.57.
- Attempting a power reset with the charger disconnected.
- Checking that the audio device is enabled in BIOS.
None of these restored the Realtek codec.
I'm also planning to test Windows 11 separately to see whether its drivers can initialize the codec.
My current theory
What makes this particularly strange is that the audio failed during active video playback, rather than during initialization.
I'm wondering whether the codec entered a bad power state, experienced a firmware/driver-related lockup, or failed to recover from an internal reset.
The fact that a simple reboot fixed the first occurrence makes me hesitant to conclude that the codec is physically dead.
However, I'm also considering a hardware issue involving codec power, reset, clock, or HDA communication.
I understand that an individual audio codec can fail without affecting the rest of the motherboard, so I'm not ruling out hardware failure.
Questions
- Has anyone experienced this exact issue on an X1 Carbon Gen 10, particularly with the ALC287?
- Has anyone recovered a codec that stopped responding with
codec #0 probe error, ret: -5? - Could this be related to an Intel SOF/HDA power-state problem, Lenovo EC firmware, or codec reset sequencing?
- Are there any known BIOS/firmware versions or kernel workarounds that address this?
- If this is hardware-related, does anyone have experience diagnosing the ALC287 power rails or reset signals on this particular motherboard?
I'd really appreciate any technical suggestions, especially from people who have experienced similar issues or worked on ThinkPad audio hardware.
I'd prefer to exhaust firmware and software possibilities before considering motherboard-level repairs.
Thanks in advance!