Re: ALC257: no internal speaker or internal mic on ThinkPad X14 Gen 1 (17aa:513d)

mmmp l <[email protected]>
Newsgroups gmane.linux.alsa.devel
Message-ID <CAE4UKs9a1515EGZ8FA=OEqK5RF7p0tPKPm4Cwz04i8U6K39n7w@mail.gmail.com>
Subject: Re: ALC257: no internal speaker or internal mic on ThinkPad
X14 Gen 1 (17aa:513d)

Hi,

Follow-up to my own report: this is a firmware defect, not a codec quirk
issue. No kernel change is needed. Sorry for the noise.

Root cause
----------
On the ThinkPad X14 Gen 1, bit 0 of Embedded Controller register 0x3b is
set at cold boot and nothing clears it. It gates the speaker amplifier.
That is why the codec looked entirely healthy -- pin configuration
correct, GPIO mask and data both zero, no SoundWire links, no DMICs --
while direct playback through plughw:0,0 stayed silent. A suspend/resume
cycle clears the bit as a side effect, which is the giveaway I missed.

The offset was originally identified by:
  https://github.com/hasukuyuki/Thinkpadx14-gen1-speaker-fix

and there is a DKMS kernel module implementing the workaround at:
  https://github.com/RockLakeGrass/thinkpad-x14-speaker-unmute

Resolution
----------
Lenovo fixed it in BIOS 1.10; the firmware now clears the bit itself.
After updating from 1.09, both the internal speakers and the internal
microphone work correctly on this machine. Anyone still on 1.09 or
earlier should update the BIOS rather than patch the kernel.

The same symptom on the same SSID was reported earlier here:
  https://bbs.archlinux.org/viewtopic.php?id=313510

I should have found that thread before writing to the list. Apologies
for the wasted attention -- I am leaving this reply in the archive so
the next person searching for 17aa:513d lands on the actual cause.

Regards,
lmmmp

mmmp l <[email protected]> 于2026年8月24日周一 15:55写道:
>
> Hi,
>
> The internal speaker and internal microphone do not work on a Lenovo
> ThinkPad X14 Gen 1 (Intel Panther Lake, Core Ultra 5 338H). Headphone
> output via the 3.5mm jack is not affected as far as I can tell, and USB
> audio works normally.
>
> alsa-info:
> https://www.google.com/url?q=https://alsa-project.org/db/?f%3D9c878be2a4f3e5bddcd7179c67fec9f4e2b11068&source=gmail&ust=1787644380800000&sa=E
>
> System
> ------
> Distribution: Fedora 44 (KDE)
> Kernel: 7.1.9-200.fc44.x86_64
> Codec: Realtek ALC257
> Vendor Id: 0x10ec0257
> Subsystem Id: 0x17aa513d
>
> Symptom
> -------
> No sound from the internal speakers at all, including a direct
> hardware-level test that bypasses PipeWire:
>
> speaker-test -D plughw:0,0 -c 2 -t wav -l 1
>
> produces no audible output. Recording from the internal mic likewise
> produces nothing.
>
> Relevant dmesg
> --------------
> snd_hda_codec_alc269 hdaudioC0D0: ALC257: picked fixup for PCI SSID 17aa:0000
> snd_hda_codec_alc269 hdaudioC0D0: autoconfig for ALC257: line_outs=1
> (0x14/0x0/0x0/0x0/0x0) type:speaker
> snd_hda_codec_alc269 hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
> snd_hda_codec_alc269 hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
> snd_hda_codec_alc269 hdaudioC0D0: inputs:
> snd_hda_codec_alc269 hdaudioC0D0: Internal Mic=0x12
> snd_hda_codec_alc269 hdaudioC0D0: Mic=0x19
>
> Note that only the vendor-wildcard entry (17aa:0000) is matched; there
> appears to be no quirk entry for this specific SSID yet.
>
> Things already ruled out
> ------------------------
> 1. Auto-Mute. `amixer -c 0 set 'Auto-Mute Mode' Disabled` makes no
> difference. All relevant mixer controls were unmuted and raised.
>
> 2. Codec GPIO. Both are zero, so there does not appear to be an amp
> enable line on the codec:
>
> hda-verb /dev/snd/hwC0D0 0x01 GET_GPIO_MASK 0 -> 0x0
> hda-verb /dev/snd/hwC0D0 0x01 GET_GPIO_DATA 0 -> 0x0
>
> 3. Existing model quirks. Tried model=thinkpad,
> alc269-fixup-thinkpad-acpi, alc257-fixup-thinkpad-acpi, alc255-acer,
> alc269-dmic and alc283-sense-combo. None produced any output.
>
> 4. SOF path. Forcing snd-intel-dspcfg dsp_driver=3 successfully boots
> the DSP and loads topology, but the speaker is still silent:
>
> sof-audio-pci-intel-ptl 0000:00:1f.3: hda codecs found, mask 5
> sof-audio-pci-intel-ptl 0000:00:1f.3: using HDA machine driver
> skl_hda_dsp_generic now
> sof-audio-pci-intel-ptl 0000:00:1f.3: DMICs detected in NHLT tables: 0
> sof-audio-pci-intel-ptl 0000:00:1f.3: Booted firmware version: 2.14.1.1
> sof-audio-pci-intel-ptl 0000:00:1f.3: loading topology:
> intel/sof-ipc4-tplg/sof-hda-generic.tplg
>
> The NHLT tables report no SoundWire links and no DMICs, so this does
> appear to be a plain HDA machine rather than a SoundWire one. I have
> since reverted dsp_driver=3 back to the default.
>
> 5. /sys/bus/soundwire/devices/ is empty, consistent with the above.
>
> I am happy to test patches or run any additional commands. Please let me
> know what else would be useful.
>
> Thanks, Yutao Ma
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.