FS#71180 - [alsa-ucm-conf] Microphone not available on Lenovo ThinkPad T14 AMD

Attached to Project: Arch Linux
Opened by Jason P. (jasonp) - Tuesday, 08 June 2021, 14:08 GMT
Last edited by David Runge (dvzrv) - Friday, 10 December 2021, 20:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
David Runge (dvzrv)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

After a regular system update the internal laptop microphone disappeared from sound applet on KDE and pavucontrol.

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)

Errors in the 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

Other relevant logs:

➜ # ~ 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

❯ lsmod | grep snd
snd_acp3x_pdm_dma 16384 1
snd_acp3x_rn 16384 0
snd_soc_dmic 16384 1
snd_soc_core 364544 3 snd_acp3x_rn,snd_soc_dmic,snd_acp3x_pdm_dma
snd_compress 32768 1 snd_soc_core
ac97_bus 16384 1 snd_soc_core
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_hda_codec_realtek 176128 1
snd_hda_codec_generic 114688 1 snd_hda_codec_realtek
snd_hda_codec_hdmi 86016 1
snd_hda_intel 57344 4
snd_intel_dspcfg 28672 1 snd_hda_intel
snd_intel_sdw_acpi 20480 1 snd_intel_dspcfg
snd_hda_codec 180224 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core 114688 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 163840 8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_compress,snd_soc_core,snd_hda_core,snd_acp3x_pdm_dma,snd_pcm_dmaengine
snd_timer 45056 1 snd_pcm
ledtrig_audio 16384 2 snd_hda_codec_generic,thinkpad_acpi
snd_rn_pci_acp3x 20480 0
snd_pci_acp3x 20480 0
snd 122880 19 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,thinkpad_acpi,snd_soc_core,snd_pcm
soundcore 16384 1 snd

Forum topic asking for support: https://bbs.archlinux.org/viewtopic.php?id=266981
This task depends upon

Closed by  David Runge (dvzrv)
Friday, 10 December 2021, 20:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with alsa-ucm-conf 1.2.6.2-2
Comment by David Runge (dvzrv) - Tuesday, 08 June 2021, 18:11 GMT
@jasonp: Thanks for the report!

I'm not 100% sure, but this might be a duplicate of  FS#71175 .
Please check whether the proposed fix [1] works for you.

[1] https://bugs.archlinux.org/task/71175#comment200399
Comment by Jason P. (jasonp) - Tuesday, 08 June 2021, 19:54 GMT
Not really, same problem with alsa-utils 1.2.5-3

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

I've checked active profiles on pavucontrol. There are two devices:
- HD-Audio Generic (HDMI)
- Family 17h (Model 10h-1fh) HD Audio Controller

Last one is supposed to have the mic I think, but for some reason only allows Stereo Analog Output (Stereo Analog Input and Stereo Analog Duplex both say disconnected). Moreover, alsactl errors above are related to the other device. Could it be happening that MIC appears to be connected where is not?
Comment by Leif (Gnatzelle) - Tuesday, 08 June 2021, 20:43 GMT
Same "Problems" here...the same alsactl errors, but all devices are functioning normally.

alsa-lib main.c:1404:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2
alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HDA NVidia at 0xfc080000 irq 65)
alsa-lib main.c:1404:(snd_use_case_mgr_open) error: failed to import hw:1 use case configuration -6
alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HD-Audio Generic at 0xfc400000 irq 67)
alsa-lib main.c:1404:(snd_use_case_mgr_open) error: failed to import hw:2 use case configuration -6
alsa-lib main.c:1404:(snd_use_case_mgr_open) error: failed to import hw:3 use case configuration -2

(GTX 1080 and Realtek ALC1220 onBoard. hw2 and 3 are loopback devices from v4l2loopback (Iriun Webcam) )

At least the coredumps are gone ^^"
Comment by Jason P. (jasonp) - Thursday, 10 June 2021, 10:14 GMT Comment by David Runge (dvzrv) - Thursday, 10 June 2021, 10:32 GMT
@jasonp: Thanks for the investigation!

The amount of patches required for 1.2.5 is baffling by now and there are so many different things broken...
It is also unclear when exactly upstream will issue the next release.

I'll apply that patch for alsa-ucm-conf in the hopes that it will fix the issue at hand. Please check whether alsa-ucm-conf 1.2.5-2 fixes your issue.
Comment by Jason P. (jasonp) - Thursday, 10 June 2021, 10:44 GMT
That was fast! Thanks :)

It works with the caveats already mentioned here and in the forum post:

- LED always ON but toggles MUTED/UNMUTED states
- Still errors during boot (reported above)

Do you think it's worthwhile to not close the bug until those two things are fixed?
Comment by David Runge (dvzrv) - Thursday, 10 June 2021, 10:58 GMT
@jasonp: I believe the two outstanding regressions with the applied fix should be reported upstream.

It is not unlikely that some fix to alsa-lib fixed those in the meantime, but it's really hard for me to tell.
Comment by Jason P. (jasonp) - Thursday, 10 June 2021, 11:01 GMT
Yep, you're probably right and we also have the forum thread to gather progress on this.

Close it if you feel like it.

Thanks!
Comment by Jakub Gołębicki (ashton) - Friday, 30 July 2021, 09:56 GMT
edit: my case might be unrelated after all, started different bug, leaving link here just in case it is https://bugs.archlinux.org/task/71709


Got hit by same issue, i created forum topic with temp fix, in my case it was sound card sound blaster z
fixed by manually running `alsactl restore` after logging in... i got it after recent update. (did yesterday, i think previous full os update was few days ago).

I went with forum post before I realized it's the same bug, there's more details inside.
https://bbs.archlinux.org/viewtopic.php?id=268406

Comment by Grzegorz (reset) - Thursday, 09 December 2021, 21:50 GMT
same problem here (microphone disappeared) on t14 gen2i after upgrade alsa-ucm-conf from 1.2.5.1-1 to 1.2.6.1-1
Comment by David Runge (dvzrv) - Friday, 10 December 2021, 20:54 GMT
A set of missing directories and symlinks are finally installed with 1.2.6.2-2 and in consequence should also be fixing this issue I believe.

Loading...