You are not logged in.

#1 2021-06-07 10:15:21

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Lost microphone after update on Lenovo ThinkPad T14 AMD

Hi,

I've just updated my system today and the built-in laptop microphone disappear from sound applet in KDE.

These were the packages updated:

[2021-06-07T11:08:07+0200] [ALPM] removed libcanberra-pulse (0.30+2+gc0620e4-3)
[2021-06-07T11:08:07+0200] [ALPM] upgraded alsa-topology-conf (1.2.4-2 -> 1.2.5-1)
[2021-06-07T11:08:07+0200] [ALPM] upgraded alsa-ucm-conf (1.2.4-2 -> 1.2.5-1)
[2021-06-07T11:08:07+0200] [ALPM] upgraded alsa-lib (1.2.4-3 -> 1.2.5-2)
[2021-06-07T11:08:07+0200] [ALPM-SCRIPTLET] WARNING: Non-backwards compatible changes to ALSA require restarting of audio engines (e.g. pulseaudio or pipewire) using it.
[2021-06-07T11:08:07+0200] [ALPM] upgraded alsa-utils (1.2.4-2 -> 1.2.5-2)
[2021-06-07T11:08:07+0200] [ALPM] upgraded util-linux-libs (2.36.2-1 -> 2.37-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded libx11 (1.7.1-1 -> 1.7.2-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded at-spi2-core (2.40.1-1 -> 2.40.2-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded libelf (0.184-1 -> 0.185-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded util-linux (2.36.2-1 -> 2.37-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded libcolord (1.4.5-3 -> 1.4.5-4)
[2021-06-07T11:08:08+0200] [ALPM] upgraded colord (1.4.5-3 -> 1.4.5-4)
[2021-06-07T11:08:08+0200] [ALPM] upgraded conmon (1:2.0.28-1 -> 1:2.0.29-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded crun (0.19.1-1 -> 0.20-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded elfutils (0.184-1 -> 0.185-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded git (2.31.1-1 -> 2.32.0-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded gupnp (1.2.6-1 -> 1.2.7-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded libogg (1.3.4-2 -> 1.3.5-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded libcanberra (0.30+2+gc0620e4-3 -> 0.30+2+gc0620e4-4)
[2021-06-07T11:08:08+0200] [ALPM] upgraded libmm-glib (1.16.4-1 -> 1.16.6-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded libnice (0.1.18-1 -> 0.1.18-2)
[2021-06-07T11:08:08+0200] [ALPM] upgraded librsvg (2:2.50.6-1 -> 2:2.50.7-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded llvm-libs (11.1.0-1 -> 12.0.0-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded libva-mesa-driver (21.1.1-1 -> 21.1.2-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded mesa (21.1.1-1 -> 21.1.2-1)
[2021-06-07T11:08:08+0200] [ALPM] upgraded mesa-vdpau (21.1.1-1 -> 21.1.2-1)
[2021-06-07T11:08:09+0200] [ALPM] upgraded podman (3.1.2-2 -> 3.2.0-1)
[2021-06-07T11:08:09+0200] [ALPM] upgraded poppler (21.06.0-1 -> 21.06.1-1)
[2021-06-07T11:08:09+0200] [ALPM] upgraded poppler-glib (21.06.0-1 -> 21.06.1-1)
[2021-06-07T11:08:09+0200] [ALPM] upgraded poppler-qt5 (21.06.0-1 -> 21.06.1-1)
[2021-06-07T11:08:09+0200] [ALPM] upgraded qt5-declarative (5.15.2+kde+r26-1 -> 5.15.2+kde+r28-1)
[2021-06-07T11:08:09+0200] [ALPM] upgraded qt5-tools (5.15.2+kde+r17-1 -> 5.15.2+kde+r17-2)
[2021-06-07T11:08:09+0200] [ALPM] upgraded vulkan-radeon (21.1.1-1 -> 21.1.2-1)

After updating I've rebooted system and got a nice alsa coredump.

           PID: 760 (alsactl)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 11 (SEGV)
     Timestamp: Mon 2021-06-07 11:28:00 CEST (39min ago)
  Command Line: /usr/bin/alsactl restore
    Executable: /usr/bin/alsactl
 Control Group: /system.slice/alsa-restore.service
          Unit: alsa-restore.service
         Slice: system.slice
       Storage: /var/lib/systemd/coredump/core.alsactl.0.c978ca4d96e74ea5b5f79968b7566e17.760.1623058080000000.zst (present)
     Disk Size: 58.4K
       Message: Process 760 (alsactl) of user 0 dumped core.
                
                Stack trace of thread 760:
                #0  0x00007f6efd537557 snd_config_delete (libasound.so.2 + 0x31557)
                #1  0x000055dd9abf4038 n/a (alsactl + 0xc038)
                #2  0x000055dd9abee706 n/a (alsactl + 0x6706)
                #3  0x00007f6efd340b25 __libc_start_main (libc.so.6 + 0x27b25)
                #4  0x000055dd9abeea5e n/a (alsactl + 0x6a5e)

It looks like the mic is being detected on boot.

➜  # ~ dmesg | grep -E 'snd|sof'
[    2.348683] snd_rn_pci_acp3x 0000:07:00.5: enabling device (0000 -> 0002)
[    2.650978] snd_hda_intel 0000:07:00.1: enabling device (0000 -> 0002)
[    2.651056] snd_hda_intel 0000:07:00.1: Handle vga_switcheroo audio client
[    2.651173] snd_hda_intel 0000:07:00.6: enabling device (0000 -> 0002)
[    2.732742] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC257: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    2.732750] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.732753] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    2.732755] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    2.732756] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    2.732757] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x19
[    2.869293] acp_pdm_mach acp_pdm_mach.0: snd_soc_register_card(acp) failed: -517
[    3.267013] Modules linked in: ccm algif_aead cbc des_generic libdes ecb algif_skcipher cmac md4 algif_hash af_alg ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack iptable_filter amdgpu(+) iptable_nat iwlmvm nf_nat snd_acp3x_pdm_dma snd_acp3x_rn snd_soc_dmic nf_conntrack snd_soc_core snd_compress nf_defrag_ipv6 ac97_bus mac80211 nf_defrag_ipv4 snd_hda_codec_realtek intel_rapl_msr snd_pcm_dmaengine iptable_raw lm92 iptable_mangle snd_hda_codec_generic snd_hda_codec_hdmi gpu_sched intel_rapl_common snd_hda_intel libarc4 i2c_algo_bit snd_intel_dspcfg drm_ttm_helper snd_intel_sdw_acpi edac_mce_amd iwlwifi snd_hda_codec ttm vfat kvm_amd fat snd_hda_core snd_hwdep kvm drm_kms_helper cfg80211 tpm_crb r8169 thinkpad_acpi snd_pcm irqbypass cec realtek tpm_tis ucsi_acpi(+) sp5100_tco psmouse rapl snd_timer syscopyarea mdio_devres tpm_tis_core platform_profile wmi_bmof k10temp typec_ucsi sysfillrect snd_rn_pci_acp3x ledtrig_audio ipmi_devintf sysimgblt fb_sys_fops snd ipmi_msghandler typec rfkill
[    3.267095]  tpm i2c_piix4 snd_pci_acp3x libphy roles soundcore i2c_scmi acpi_cpufreq mac_hid drm fuse agpgart ip_tables x_tables rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel crypto_simd ccp cryptd rtsx_pci xhci_pci rng_core xhci_pci_renesas i8042 wmi serio video pinctrl_amd btrfs blake2b_generic libcrc32c crc32c_generic crc32c_intel xor raid6_pq pkcs8_key_parser acpi_call(OE)
[    3.906582] snd_hda_intel 0000:07:00.1: bound 0000:07:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
➜  # ~ dmesg | grep Mic
[    2.732757] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x19
[    2.799122] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:08.1/0000:07:00.6/sound/card1/input12

Offline

#2 2021-06-07 11:36:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Could just be a logic rerouting in terms of profiles. What's your

arecord -l
pactl list-cards
pactl list-sources

The alsactl coredump, while I can reproduce, should not be inherently problematic (... that runs for restoring the volumes of devices).

FWIW: https://github.com/alsa-project/alsa-lib/issues/142 but the patches discussed there should be shipped in our alsa-{lib,utils} versions.

Last edited by V1del (2021-06-07 11:50:13)

Offline

#3 2021-06-07 12:05:55

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

❯ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: acp [acp], device 0: DMIC capture dmic-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
❯ pactl list cards
Card #0
        Name: alsa_card.pci-0000_07_00.1
        Driver: module-alsa-card.c
        Owner Module: 6
        Properties:
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xfd3c8000 irq 108"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:07:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "1637"
                device.string = "0"
                device.description = "HD-Audio Generic"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                output:hdmi-stereo: Salida Digital Stereo (HDMI) (sinks: 1, sources: 0, priority: 5900, available: yes)
                output:hdmi-stereo-extra1: Salida Digital Stereo (HDMI 2) (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-surround-extra1: Salida Digital Surround 5.1 (HDMI 2) (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra1: Salida Digital Surround 7.1 (HDMI 2) (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-stereo-extra2: Salida Digital Stereo (HDMI 3) (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-surround-extra2: Salida Digital Surround 5.1 (HDMI 3) (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra2: Salida Digital Surround 7.1 (HDMI 3) (sinks: 1, sources: 0, priority: 600, available: no)
                off: Apagado (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:hdmi-stereo
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, available)
                        Properties:
                                device.icon_name = "video-display"
                                device.product.name = "DELL U2520D"
                        Part of profile(s): output:hdmi-stereo
                hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
                hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Card #1
        Name: alsa_card.pci-0000_07_00.6
        Driver: module-alsa-card.c
        Owner Module: 8
        Properties:
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xfd3c0000 irq 109"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:07:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:07:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
                device.string = "1"
                device.description = "Family 17h (Models 10h-1fh) HD Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                input:analog-stereo: Entrada Estéreo analógico (sinks: 0, sources: 1, priority: 65, available: no)
                output:analog-stereo: Salida Estéreo analógico (sinks: 1, sources: 0, priority: 6500, available: yes)
                output:analog-stereo+input:analog-stereo: Estéreo analógico dúplex (sinks: 1, sources: 1, priority: 6565, available: no)
                off: Apagado (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:analog-stereo
        Ports:
                analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
                analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability unknown)
                        Properties:
                                device.icon_name = "audio-speakers"
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
                analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-headphones"
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
❯ pactl list sinks
Sink #0
        State: SUSPENDED
        Name: alsa_output.pci-0000_07_00.1.hdmi-stereo
        Description: HD-Audio Generic Digital Stereo (HDMI)
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 6
        Mute: no
        Volume: front-left: 6554 /  10% / -60.00 dB,   front-right: 6554 /  10% / -60.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_07_00.1.hdmi-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS 
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "HDMI 0"
                alsa.id = "HDMI 0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "3"
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xfd3c8000 irq 108"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:07:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "1637"
                device.string = "hdmi:0"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo"
                device.profile.description = "Digital Stereo (HDMI)"
                device.description = "HD-Audio Generic Digital Stereo (HDMI)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, available)
        Active Port: hdmi-output-0
        Formats:
                pcm

Sink #1
        State: SUSPENDED
        Name: alsa_output.pci-0000_07_00.6.analog-stereo
        Description: Family 17h (Models 10h-1fh) HD Audio Controller Estéreo analógico
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 8
        Mute: yes
        Volume: front-left: 0 /   0% / -inf dB,   front-right: 0 /   0% / -inf dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_07_00.6.analog-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC257 Analog"
                alsa.id = "ALC257 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xfd3c0000 irq 109"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:07:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:07:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
                device.string = "front:1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Estéreo analógico"
                device.description = "Family 17h (Models 10h-1fh) HD Audio Controller Estéreo analógico"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability unknown)
                analog-output-headphones: Headphones (type: Headphones, priority: 9900, not available)
        Active Port: analog-output-speaker
        Formats:
                pcm

BTW, coredump just happened right after rebooting first time. I guess it was harmless. Speakers volume gets restored just fine.

Offline

#4 2021-06-07 12:14:13

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Looking at the issue on GitHub, it could be the same problem.

I am getting the message alsactl cannot find hw:0 and daemon deactivates with no devices showing. Downgrading to 1.2.4 solves the problem.

This is from my boot logs:

alsactl[755]: alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HD-Audio Generic at 0xfd3c8000 irq 108)
alsactl[755]: alsa-lib main.c:1402:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6

Offline

#5 2021-06-07 12:29:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

looks like some alsa-ucm-conf logic mismatch, does it work again if you force it to be used

pacmd set-card-profile alsa_card.pci-0000_07_00.6 output:analog-stereo+input:analog-stereo

in case it does, you can as a workaround add that line without the leading pacmd to the end of your /etc/pulse/default.pa

Not entirely sure whether this mismatch is a bug in the new alsa-lib or in pulse's config parser in conjunction with alsa-lib.

Last edited by V1del (2021-06-07 12:30:21)

Offline

#6 2021-06-07 13:17:05

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

pacmd set-card-profile alsa_card.pci-0000_07_00.6 output:analog-stereo+input:analog-stereo

It changed the profile but the sound applet on KDE doesn't show a microphone as always.

pavucontrol shows microphone as disconnected with no other option in the dropdown selector.

Offline

#7 2021-06-08 08:54:08

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

@V1del would you mind to move the post to "Laptop issues" forum? I think it's going to have more attention there.

Offline

#8 2021-06-08 14:09:57

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

I've opened a new bug report.

Offline

#9 2021-06-08 14:30:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Moved to laptop issues, by request.

Last edited by ewaller (2021-06-08 14:30:40)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2021-06-08 17:22:34

gca
Member
Registered: 2021-06-08
Posts: 59

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Hello.
same thinkpad model, same problem.
Headset mic work and mute-led work.
I've edit /etc/pulse/default.pa and uncomment line 39, delete all from ~/.conf/pulse/* and restart.
Now mic is showed (gnome settings), but not working mute-led.
Now led is always on (alsamixer did not follow mute...) and I do not know if work (not tested 'cause use headset, but I want everything to work!!!! big_smile )

PS: tested led by

echo 0 | sudo tee /sys/class/leds/platform\:\:micmute/brightness

and 

echo 1 | sudo tee /sys/class/leds/platform\:\:micmute/brightness

Last edited by gca (2021-06-08 18:13:12)

Offline

#11 2021-06-08 20:14:39

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

My LED is always ON (as when muted). Pressing the key doesn't change state.

There's an interesting thread in Lenovo forums going on that kind of resembles the same. Someone suggests there was a problem already with the mic, even if it worked as in my case:

When your MIC is connected to the internal HDA codec, that's a bug on your box too.

➜  # ~ dmesg | grep -i mic
[    2.546473] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x19
[    2.586557] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:08.1/0000:07:00.6/sound/card1/input12

Last edited by Jason P. (2021-06-08 20:18:32)

Offline

#12 2021-06-08 20:41:58

paquiteau
Member
Registered: 2021-06-08
Posts: 1

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Hi, Same problem here on T14 Gen1 AMD:
- No microphone input available in gnome or pavucontrol
- The mic led is not usable (but works if toggled through @gca commands, also possible to activate with alsamixer)

I purged the config of pulseaudio and reinstalled it, with no success.   The recent update to alsa-utils 1.2.5-3 did not fix these problems.

Unlike https://bugs.archlinux.org/task/71175 I do not have a segfault, but instead I get this error:

# alsactl restore 
alsa-lib ucm_subs.c:252:(rval_lookup_main) Lookups are supported in v4+ syntax
alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HD-Audio Generic at 0xfd3c8000 irq 107)
alsa-lib main.c:1402:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6
alsa-lib ucm_subs.c:252:(rval_lookup_main) Lookups are supported in v4+ syntax
alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HD-Audio Generic at 0xfd3c0000 irq 108)
alsa-lib main.c:1402:(snd_use_case_mgr_open) error: failed to import hw:1 use case configuration -6
# dmesg | grep -i audio
[    0.301707] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    3.498722] snd_hda_intel 0000:07:00.1: Handle vga_switcheroo audio client
[    3.516414] snd_hda_intel 0000:07:00.1: bound 0000:07:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[    3.517262] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0/input10
[    3.517303] input: HD-Audio Generic HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0/input11
[    3.517337] input: HD-Audio Generic HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0/input12
[    3.742710] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC257: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    3.742714] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.742715] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    3.742716] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    3.742717] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    3.742718] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x19
[    4.102021] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:08.1/0000:07:00.6/sound/card1/input13
[    4.102062] input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:08.1/0000:07:00.6/sound/card1/input14

Offline

#13 2021-06-09 15:35:45

pilafsama
Member
Registered: 2021-06-09
Posts: 1

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Same problem as described by OP on T14 Gen1 AMD.
Tried manually specifying hardware id in /etc/pulse/default.pa with alsactl restore, after that gnome sound settings show input mic but still can't record anything or see any audio signal there.

 alsamixer -c 1 

Mic is also visible in alsamixer and LED can be controlled from there but mic doesn't work.

Offline

#14 2021-06-09 16:29:40

talhah
Member
Registered: 2021-06-09
Posts: 6

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Hi, same issue as described by OP on T14s Gen1 AMD:
- no microphone input shown in pavucontrol

Did not attempt any fixes as the other users before me have already tried some fixes and had no luck. Scouring through Github and found this though
https://github.com/alsa-project/alsa-lib/issues/148.

Offline

#15 2021-06-09 20:19:59

tulcod
Member
Registered: 2011-05-25
Posts: 9

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

talhah wrote:

Hi, same issue as described by OP on T14s Gen1 AMD:
- no microphone input shown in pavucontrol

Did not attempt any fixes as the other users before me have already tried some fixes and had no luck. Scouring through Github and found this though
https://github.com/alsa-project/alsa-lib/issues/148.

The issue you linked says a fix is in alsa-ucm-conf, however this fix was merged after the 1.2.5 release of 31 May 2021. Version 1.2.4 was released in October 2020, so it may take a few months before this fix gets released, so for me it's worth relying on just making this change manually.

I got my microphone functional (without the LED) on a T14 AMD Gen1 by editing the file /usr/share/alsa/ucm2/HDA-Intel/HDA-Intel.conf directly, changing the number 3 on the first line to the number 4:

$ cat /usr/share/alsa/ucm2/HDA-Intel/HDA-Intel.conf
Syntax 4 # This line was edited: this used to be a 3

Define.Use ""	# a non-empty string to use UCM configuration for HDA devices

Define.AcpCardId "$${find-card:field=name,return=id,regex='^acp$'}"
...

Offline

#16 2021-06-10 10:11:18

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

tulcod wrote:

The issue you linked says a fix is in alsa-ucm-conf, however this fix was merged after the 1.2.5 release of 31 May 2021. Version 1.2.4 was released in October 2020, so it may take a few months before this fix gets released, so for me it's worth relying on just making this change manually.

I got my microphone functional (without the LED) on a T14 AMD Gen1 by editing the file /usr/share/alsa/ucm2/HDA-Intel/HDA-Intel.conf directly, changing the number 3 on the first line to the number 4:

$ cat /usr/share/alsa/ucm2/HDA-Intel/HDA-Intel.conf
Syntax 4 # This line was edited: this used to be a 3

Define.Use ""	# a non-empty string to use UCM configuration for HDA devices

Define.AcpCardId "$${find-card:field=name,return=id,regex='^acp$'}"
...

I can confirm this solves the main issue here but I still can see errors in the logs that didn't happen before. As noted by @tulcod LED doesn't work. Mine is always ON.

alsactl[769]: alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HD-Audio Generic at 0xfd3c8000 irq 108)
alsactl[769]: alsa-lib main.c:1402:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6
alsactl[769]: alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HD-Audio Generic at 0xfd3c0000 irq 109)
alsactl[769]: alsa-lib main.c:1402:(snd_use_case_mgr_open) error: failed to import hw:1 use case configuration -6

Luckily for us it seems there will be a 1.2.5.1 release soon.

https://github.com/alsa-project/alsa-uc … -852075695

Offline

#17 2021-06-10 10:46:34

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Patched alsa-ucm-conf available in repos.

Offline

#18 2021-06-11 20:55:32

gca
Member
Registered: 2021-06-08
Posts: 59

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Mic mute-led: follow mute, not working! With last updates...

Offline

#19 2021-06-11 21:40:37

talhah
Member
Registered: 2021-06-09
Posts: 6

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

tulcod wrote:
talhah wrote:

Hi, same issue as described by OP on T14s Gen1 AMD:
- no microphone input shown in pavucontrol

Did not attempt any fixes as the other users before me have already tried some fixes and had no luck. Scouring through Github and found this though
https://github.com/alsa-project/alsa-lib/issues/148.

The issue you linked says a fix is in alsa-ucm-conf, however this fix was merged after the 1.2.5 release of 31 May 2021. Version 1.2.4 was released in October 2020, so it may take a few months before this fix gets released, so for me it's worth relying on just making this change manually.

I got my microphone functional (without the LED) on a T14 AMD Gen1 by editing the file /usr/share/alsa/ucm2/HDA-Intel/HDA-Intel.conf directly, changing the number 3 on the first line to the number 4:

$ cat /usr/share/alsa/ucm2/HDA-Intel/HDA-Intel.conf
Syntax 4 # This line was edited: this used to be a 3

Define.Use ""	# a non-empty string to use UCM configuration for HDA devices

Define.AcpCardId "$${find-card:field=name,return=id,regex='^acp$'}"
...

I can also confirm this fixing the main issue for me, and as others reported the mute-led is now on all the time.

Offline

#20 2021-06-12 09:17:42

gca
Member
Registered: 2021-06-08
Posts: 59

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Yes, led is fixed

Offline

#21 2021-06-13 12:52:02

talhah
Member
Registered: 2021-06-09
Posts: 6

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Just an update, everything is now working as it was before. Microphone is now detected and the mute-LED is also working. This thread can be marked as solved.
Edit: This issue is not solved, the mute LED indicates the status of the external headset rather than the internal microphone.

Last edited by talhah (2021-06-21 08:48:34)

Offline

#22 2021-06-13 15:58:35

gca
Member
Registered: 2021-06-08
Posts: 59

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Form me, led is fixed... Update not resolve!
Did you use gnome? What you change?

Last edited by gca (2021-06-13 16:00:03)

Offline

#23 2021-06-13 20:25:13

gca
Member
Registered: 2021-06-08
Posts: 59

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Now not working bluetooth headset. Led volume and mic are fixed. Enable/disable work osd. But sounds not working.
Too many problems with last updates... pulseaudio is broken with alsa 1.2.5. Actually only normal headset with jack working correct and with led status....

pacmd list-cards
3 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_07_00.1>
    driver: <module-alsa-card.c>
    owner module: 6
    properties:
        alsa.card = "0"
        alsa.card_name = "HD-Audio Generic"
        alsa.long_card_name = "HD-Audio Generic at 0xfd3c8000 irq 109"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:07:00.1"
        sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0"
        device.bus = "pci"
        device.vendor.id = "1002"
        device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
        device.product.id = "1637"
        device.string = "0"
        device.description = "HD-Audio Generic"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        HiFi: Play HiFi quality Music (priority 8000, available: no)
        off: Spento (priority 0, available: unknown)
    active profile: <off>
    ports:
        [Out] HDMI3: HDMI / DisplayPort 3 Output (priority 1300, latency offset 0 usec, available: no)
            properties:
               
        [Out] HDMI2: HDMI / DisplayPort 2 Output (priority 1200, latency offset 0 usec, available: no)
            properties:
               
        [Out] HDMI1: HDMI / DisplayPort 1 Output (priority 1100, latency offset 0 usec, available: no)
            properties:
               
    index: 1
    name: <alsa_card.pci-0000_07_00.6>
    driver: <module-alsa-card.c>
    owner module: 8
    properties:
        alsa.card = "1"
        alsa.card_name = "HD-Audio Generic"
        alsa.long_card_name = "HD-Audio Generic at 0xfd3c0000 irq 110"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:07:00.6"
        sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:07:00.6/sound/card1"
        device.bus = "pci"
        device.vendor.id = "1022"
        device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
        device.product.id = "15e3"
        device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
        device.string = "1"
        device.description = "Family 17h (Models 10h-1fh) HD Audio Controller"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        HiFi: Play HiFi quality Music (priority 8000, available: unknown)
        off: Spento (priority 0, available: unknown)
    active profile: <HiFi>
    sinks:
        alsa_output.pci-0000_07_00.6.HiFi___ucm0003.hw_Generic_1__sink/#0: Family 17h (Models 10h-1fh) HD Audio Controller Speaker + Headphones
    sources:
        alsa_output.pci-0000_07_00.6.HiFi___ucm0003.hw_Generic_1__sink.monitor/#0: Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Speaker + Headphones
        alsa_input.pci-0000_07_00.6.HiFi___ucm0003.hw_acp__source/#1: Family 17h (Models 10h-1fh) HD Audio Controller Digital Microphone
        alsa_input.pci-0000_07_00.6.HiFi___ucm0003.hw_Generic_1__source/#2: Family 17h (Models 10h-1fh) HD Audio Controller Headphones Stereo Microphone
    ports:
        [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown)
            properties:
               
        [Out] Headphones: Headphones (priority 200, latency offset 0 usec, available: no)
            properties:
               
        [In] Mic1: Digital Microphone (priority 100, latency offset 0 usec, available: unknown)
            properties:
               
        [In] Mic2: Headphones Stereo Microphone (priority 200, latency offset 0 usec, available: no)
            properties:
               
    index: 3
    name: <bluez_card.BD_5A_B4_FB_CD_A8>
    driver: <module-bluez5-device.c>
    owner module: 26
    properties:
        device.description = "Prink Headset"
        device.string = "BD:5A:B4:FB:CD:A8"
        device.api = "bluez"
        device.class = "sound"
        device.bus = "bluetooth"
        device.form_factor = "headset"
        bluez.path = "/org/bluez/hci0/dev_BD_5A_B4_FB_CD_A8"
        bluez.class = "0x340404"
        bluez.alias = "Prink Headset"
        device.icon_name = "audio-headset-bluetooth"
        device.intended_roles = "phone"
    profiles:
        a2dp_sink: Riproduzione ad alta fedeltà (sink A2DP) (priority 40, available: unknown)
        headset_head_unit: Unità headset head (HSP/HFP) (priority 30, available: no)
        off: Spento (priority 0, available: yes)
    active profile: <a2dp_sink>
    sinks:
        bluez_sink.BD_5A_B4_FB_CD_A8.a2dp_sink/#2: Prink Headset
    sources:
        bluez_sink.BD_5A_B4_FB_CD_A8.a2dp_sink.monitor/#4: Monitor of Prink Headset
    ports:
        headset-output: Cuffie con microfono (priority 0, latency offset 0 usec, available: unknown)
            properties:
               
        headset-input: Cuffie con microfono (priority 0, latency offset 0 usec, available: no)
            properties:

Last edited by gca (2021-06-13 20:27:06)

Offline

#24 2021-06-14 12:03:36

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

After updating today mute LED went OFF. Still doesn't reflect real status of microphone but at least button toggles ON and OFF.

Mentioned alsa errors in boot logs are yet present.

update: after poweroff/poweron, mic went ON again. this is weird hmm

Last edited by Jason P. (2021-06-14 16:07:11)

Offline

#25 2021-06-14 19:21:10

gca
Member
Registered: 2021-06-08
Posts: 59

Re: Lost microphone after update on Lenovo ThinkPad T14 AMD

Don't forget  to delete .config/pulse/* wink

Offline

Board footer

Powered by FluxBB