Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Linux Operating SystemsOther Linux Discussions
All Forum Topics
Options

14 Posts

05-24-2021

Germany

11 Signins

60 Page Views

  • Posts: 14
  • Registered: ‎05-24-2021
  • Location: Germany
  • Views: 60
  • Message 1 of 24

Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-05-24, 13:20 PM

I run opensuse Leap-15.2, kernel version 5.3.18 on  ThinkPad X1 Yoga Gen5 and can not configure Comet Lake PCH-LP cAVS soundcard.

 

yast2 says

 

The kernel module snd-soc-skl for sound support
could not be loaded. This can be caused by incorrect
module parameters, including invalid IO or IRQ parameters.

 

Partial output of lspci -vv

 

00:1f.3 Audio device: Intel Corporation Comet Lake PCH-LP cAVS (prog-if 80)
        Subsystem: Lenovo Device 22be
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 64
        Interrupt: pin A routed to IRQ 133
        Region 0: Memory at ea33c000 (64-bit, non-prefetchable) [size=16K]
        Region 4: Memory at ea000000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [50] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
                Status: D3 NoSoftRst+ PME-Enable+ DSel=0 DScale=0 PME-
        Capabilities: [80] Vendor Specific Information: Len=14 <?>
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
                Address: 00000000fee003d8  Data: 0000
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_skl, sof_pci_dev

 

The hardware profile can be seen at https://linux-hardware.org/?probe=e40b11dca2

 

Any help for configuring the sound will be greatly appreciated.

Reply
Answer
Options

6 Posts

06-02-2021

United States of America

7 Signins

10 Page Views

  • Posts: 6
  • Registered: ‎06-02-2021
  • Location: United States of America
  • Views: 10

Re:Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-06-04, 14:11 PM

yogax13:/home/bishop # lspci -k

......

00:1f.3 Multimedia audio controller: Intel Corporation Comet Lake PCH-LP cAVS

Subsystem: Lenovo Device 22ad

Kernel driver in use: sof-audio-pci

Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci

 

yogax13:/home/bishop #  lsmod | grep -i audio
ledtrig_audio          16384  3 snd_hda_codec_generic,snd_sof,thinkpad_acpi

 

yogax13:/home/bishop # lsmod | grep -i sof
snd_sof_pci            24576  0
snd_sof_intel_hda_common    98304  1 snd_sof_pci
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
snd_sof_intel_byt      28672  1 snd_sof_pci
snd_sof_intel_ipc      20480  1 snd_sof_intel_byt
snd_sof               135168  4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_intel_byt,snd_sof_intel_ipc
snd_sof_xtensa_dsp     16384  2 snd_sof_intel_hda_common,snd_sof_intel_byt
snd_soc_hdac_hda       24576  2 snd_sof_intel_hda_common,snd_soc_skl
snd_hda_ext_core       32768  5 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda
snd_soc_acpi_intel_match    49152  3 snd_sof_pci,snd_sof_intel_hda_common,snd_soc_skl
snd_soc_acpi           16384  4 snd_soc_acpi_intel_match,snd_sof_intel_hda_common,snd_sof_intel_byt,snd_soc_skl
snd_intel_dspcfg       28672  4 snd_hda_intel,snd_sof_pci,snd_sof_intel_hda_common,snd_soc_skl
soundwire_intel        45056  2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_core          106496  12 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda,snd_soc_skl_hda_dsp
snd_soc_core          303104  8 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_soc_dmic,snd_soc_skl_hda_dsp
snd_pcm               155648  13 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_sof_intel_ipc,snd_compress,snd_soc_core,snd_soc_skl,snd_hda_core,snd_pcm_dmaengine
ledtrig_audio          16384  3 snd_hda_codec_generic,snd_sof,thinkpad_acpi

 

 

yogax13:/home/bishop # uname -a

Linux yogax13 5.3.18-57-default #1 SMP Wed Apr 28 10:54:41 UTC 2021 (ba3c2e9) x86_64 x86_64 x86_64 GNU/Linux

 

yogax13:/home/bishop # cat /etc/SUSE-brand

openSUSEVERSION = 15.3

Reply

Replies(23)
Options

1190 Posts

05-14-2020

United States of America

498 Signins

6155 Page Views

  • Posts: 1190
  • Registered: ‎05-14-2020
  • Location: United States of America
  • Views: 6155
  • Message 2 of 24

Re:Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-05-25, 1:15 AM

Hello,

 

Here is a detailed troubleshooting sequence for openSUSE sound issues:  https://en.opensuse.org/SDB:Audio_troubleshooting

 

It is structured to start at the top and then exit the recipe when sound starts working....

 

What is your machine identification code, ten digits something like 81DMxxxyyy ?

 

Good Luck!
Usedtoberich

Reply
Options

14 Posts

05-24-2021

Germany

11 Signins

60 Page Views

  • Posts: 14
  • Registered: ‎05-24-2021
  • Location: Germany
  • Views: 60
  • Message 3 of 24

Re:Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-05-25, 6:36 AM
Thanks for the reply! I am not sure what do you mean by id code. Serial Number: PF-2S2K6N Type number: 20UB-CTO1WW Factory ID: JVHFC1 Complience ID: TP00110B Type number fits the format, that your requested.
Reply
Options

14 Posts

05-24-2021

Germany

11 Signins

60 Page Views

  • Posts: 14
  • Registered: ‎05-24-2021
  • Location: Germany
  • Views: 60
  • Message 4 of 24

Re:Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-05-25, 8:38 AM

@Usedtoberich 

It seems that the problem is at the level of kernel modules. Using yast sound module to configure the deafault card gives a message that the kernel module snd-soc-skl can not be loaded.

Adding manually (after trying different models) card Intel ICH10 (HDA) and setting it to be the primary card, I have sound output, but there is no device for Capture.

alsamixer shows controls for the capture device, but applications don't find one. arecord doesn't record any sound. pavucontrol doesn't see any input devices either.

The reported codec is Realtek ALC285, and searching for it on https://www.alsa-project.org/ gives no results.

Does it mean that the card is currently not supported?

 

Thanks for your help.

Reply
Options

1190 Posts

05-14-2020

United States of America

498 Signins

6155 Page Views

  • Posts: 1190
  • Registered: ‎05-14-2020
  • Location: United States of America
  • Views: 6155
  • Message 5 of 24

Re:Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-05-26, 5:21 AM

Sound configuration details depend on what software is installed and what software is active at this very moment.  There is a new software package named pipewire that I think is intended to replace alsa, JACK, and PulseAudio.   If you are running the latest GNOME desktop, pipewire may be active.  Then configuration and troubleshooting for, say, alsa, or OOS doesn't accomplish much because those are not running....   :(

 

Simplify your configuration, so only alsa is active, then troubleshoot it.  Although the few forums I checked seemed to have successful answers saying, "I clicked some buttons and moved some sliders and it started working..."   That was my experience the first and only time I tried to get a usb microphone to work.

 

At initial start up, by default alsa is set to mute everything.  have you unmuted your inputs?   Also the "headphone" sliders often activate things that are not headphones (many headphones have integrated microphones..)

 

And more common than it should happen, the 3.5mm plug has more than one standardized way to physically place the electrical contacts for left-right microphone, left-right speakers, common ground.  Does the standard deployed on your 3.5mm plug have the correct placement of those contacts to match the contacts within the socket?

 

Good Luck,  Sound experts please respond!

Usedtoberich

 

 

Reply
Options

14 Posts

05-24-2021

Germany

11 Signins

60 Page Views

  • Posts: 14
  • Registered: ‎05-24-2021
  • Location: Germany
  • Views: 60
  • Message 6 of 24

Re:Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-05-26, 7:31 AM

Thanks.

Indeed pipewire is running. It is started by systemd --user. I have disabled both pipewire and pipewire.socket. But the behavior of the system does not change.

The problem is not with muting any channels, it is just that the capture device does not exist, neither for built-in michrophone nor jack.

I will try with usb microphone when I get hold of one.

Thanks for trying anyway.

Reply
Options

676 Posts

07-22-2019

Canada

471 Signins

5346 Page Views

  • Posts: 676
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 5346
  • Message 7 of 24

Re:Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-05-28, 17:03 PM

Would you mind attaching your dmesg log from boot up and your kernel config ?

 

My guess is this is related to the Intel SOF driver - which is what should be used for audio on this platform. I haven't run Leap in a while but my feeling is you've got hit by the SOF stuff, checking your logs will help confirm

 

Thanks

Mark

Reply
Options

14 Posts

05-24-2021

Germany

11 Signins

60 Page Views

  • Posts: 14
  • Registered: ‎05-24-2021
  • Location: Germany
  • Views: 60
  • Message 8 of 24

Re:Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-05-29, 7:37 AM

Mark, thank you so much for looking into this!

 

I have tried to run several other distros (live, without install) debian, ubuntu, fedora.

None had the mike working, some had no sound at all.

I think the problem is on the level of kernel modules, as you suggested.

 

I am not sure what do you mean by kernel config. I am attaching the following:

dmesg.txt - logs from boot.

proc-config.gz - compile-time kernel config (/proc/config.gz)

etc-modprobe.d.tgz - content of /etc/modprobe.d/

lsmod.txt - output from lsmod

lspci.txt - output from lspci -vv

proc-asound-cards.txt - content of /proc/asound/cards

 

For some reason I can not attach files (on mozilla, chromium, opera). Here is the link

https://www.dropbox.com/s/148ij4j1qgp2nca/config-logs-TPX1YogaGen5.tar?dl=0

to the tar containing all six of them.

 

There is more info about my machine at  https://linux-hardware.org/?probe=e40b11dca2

 

It would be great if we could make the mike working, because otherwise it is an excellent machine.

Thanks in advance.

 

Reply
Options

14 Posts

05-24-2021

Germany

11 Signins

60 Page Views

  • Posts: 14
  • Registered: ‎05-24-2021
  • Location: Germany
  • Views: 60
  • Message 9 of 24

Re:Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-05-29, 12:43 PM

I have updated sof-firmware to the latest version v1.7 from https://github.com/thesofproject/sof-bin , but there are no improvements.

 

After modprobe snd-soc-skl kernel says:

 

[  319.921687] snd_seq: Unknown symbol snd_seq_autoload_init (err -2)
[  319.921846] snd_seq: Unknown symbol snd_seq_autoload_exit (err -2)
[  319.921875] snd_seq: Unknown symbol snd_seq_device_load_drivers (err -2)
[  400.088339] snd_soc_skl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[  400.097145] snd_soc_skl 0000:00:1f.3: undefined DMIC array_type 0xf
[  400.097391] snd_soc_skl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[  400.117379] skl_hda_dsp_generic skl_hda_dsp_generic: Unsupported HDAudio/iDisp configuration found
[  400.117382] skl_hda_dsp_generic: probe of skl_hda_dsp_generic failed with error -22

 

modprobe snd-hda-intel looks good, but microphone is not working anyway.

 

[  790.229686] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[  790.258907] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC285: line_outs=2 (0x14/0x17/0x0/0x0/0x0) type:speaker
[  790.258909] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[  790.258910] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[  790.258910] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[  790.258911] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[  790.258912] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x19
[  790.317064] input: HDA Intel PCH Headset Jack as /devices/pci0000:00/0000:00:1f.3/sound/card0/input35
[  790.317106] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1f.3/sound/card0/input36
[  790.317149] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input37
[  790.317185] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input38
[  790.317217] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input39
[  790.317251] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input40
[  790.317284] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input41
[  790.317316] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input42
[  790.317342] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input43

Reply
Options

6 Posts

06-02-2021

United States of America

7 Signins

10 Page Views

  • Posts: 6
  • Registered: ‎06-02-2021
  • Location: United States of America
  • Views: 10
  • Message 10 of 24

Re:Linux on ThinkPad X1 Yoga Gen5. Sound configuration.

2021-06-02, 19:58 PM

I have an X13 Yoga Thinkpad (model 20SYS0XA01) and it does about the same with OpenSUSE (15.2 and 15.3 live or installed w/ KDE).. no mic or sound.

 

However _every_ other distro I've tried works w/out any issues: CentOS, Fedora, Debian, Ubuntu.


Would love to know how to fix b/c all my other computers are OpenSUSE.

Let me know what info I can provide

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms