No input through internal microphone (Ryzen 6000)

Bug #2062412 reported by blszyn
This bug report is a duplicate of:  Bug #2061254: No mic detected - Ubuntu 24.04 Beta. Edit Remove
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Anthony Wong

Bug Description

The microphone in a Thinkpad P14S (AMD) Gen 4 stopped working after updating from 23.10 to 24.04 Beta with kernel 6.8.0-22-generic. This is a known problem and a patch may be included in kernel 6.8.3.

Is it possible to backport this patch? Or is the plan to wait for a kernel update? It would be good use the microphone in 24.04.

The symptoms are exactly as described in
https://bbs.archlinux.org/viewtopic.php?pid=2162297#p2162297

Reportedly the patch is included in
https://github.com/zen-kernel/zen-kernel/blob/6.7/main/sound/soc/amd/yc/acp6x-mach.c#L59

Revision history for this message
blszyn (blszyn) wrote :
Revision history for this message
blszyn (blszyn) wrote :
Changed in linux (Ubuntu):
assignee: nobody → Anthony Wong (anthonywong)
Revision history for this message
Mario Limonciello (superm1) wrote :

This is the upstream solution:

https://github.com/torvalds/linux/commit/861b3415e4dee06cc00cd1754808a7827b9105bf

Here is the commit from 6.8.3:

b44a34f581b0 ("ASoC: amd: yc: Revert "Fix non-functional mic on Lenovo 21J2"")

Revision history for this message
blszyn (blszyn) wrote :

Commit b44a34f581b0 applies to type 21J2 but Lenovo Thinkpad P14s (AMD) Gen 4 is type 21K5.

Mario - you commented on a commit regarding type 21K5 here

https://<email address hidden>/T/

Should 21K5 be included in the Quirks List?

Revision history for this message
Mario Limonciello (superm1) wrote :

The problem is that the "Pink Sardine" (Phoenix) laptops were being applied to the "Yellow Carp" (Rembrandt) driver. This is improper behavior and will cause other problems even if it fixed the immediate microphone issue.

The Phoenix Lenovo laptops are supposed to have something in the ACPI tables that makes sure they bind properly to the Pink Sardine driver, shouldn't need quirks.

You *might* be able to workaround the issue until Ubuntu issues a fix by blacklisting snd_pci_acp6x. A Phoenix laptop should be loading snd_pci_ps.

Revision history for this message
Mario Limonciello (superm1) wrote :

There is a second commit with a similar problem and really the one I should have linked; this one is much more severe.

Here is that fix:

https://github.com/torvalds/linux/commit/37bee1855d0e3b6dbeb8de71895f6f68cad137be

It also came into 6.8.3.

3e52444ed190 ("ASoC: amd: yc: Revert "add new YC platform variant (0x63) support"")

Maybe you can try some of the mainline PPA builds to confirm they picked up the fix.
https://kernel.ubuntu.com/mainline/

Revision history for this message
Hui Wang (hui.wang) wrote :

This issue was already reported in #2061254.

Revision history for this message
blszyn (blszyn) wrote :

I tried mainline daily build 6.9.0-060900rc4daily20240420-generic. (Does it include commits that came a few hours before?) The microphone appears to be an acp63 device. Both snd_pci_acp6x and snd_pci_ps are loaded. Is the next step to blacklist snd_pci_acp6x?

kernel:

https://kernel.ubuntu.com/mainline/daily/2024-04-20/amd64/

commits:

ASoC: amd: yc: Revert "add new YC platform variant (0x63) support"

https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/noble/commit/?h=master-next&id=c58513355783d99af76c5b49e22cc4d275268d81

ASoC: amd: yc: Revert "Fix non-functional mic on Lenovo 21J2"

https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/noble/commit/?h=master-next&id=575642e9cdf5ce526822a63daacb22802e4d64cd

$ cat /proc/asound/cards
 0 [Generic ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0x785c8000 irq 90
 1 [Generic_1 ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0x785c0000 irq 91
 2 [acp63 ]: acp63 - acp63
                      LENOVO-21K5CTO1WW-ThinkPadP14sGen4

$ sudo lsmod | grep snd_pci
snd_pci_ps 24576 0
snd_amd_sdw_acpi 16384 2 snd_sof_amd_acp,snd_pci_ps
soundwire_amd 45056 2 snd_sof_amd_acp,snd_pci_ps
snd_pci_acp6x 16384 0
snd_pci_acp5x 16384 0
snd_pcm 196608 14 snd_sof_amd_acp,snd_hda_codec_hdmi,snd_pci_acp6x,snd_hda_intel,snd_hda_codec,snd_sof,snd_ps_pdm_dma,snd_compress,snd_soc_core,snd_sof_utils,soundwire_amd,snd_hda_core,snd_pci_ps,snd_pcm_dmaengine
snd_acp_config 20480 9 snd_rn_pci_acp3x,snd_pci_acp6x,snd_pci_acp5x,snd_sof_amd_rembrandt,snd_sof_amd_vangogh,snd_sof_amd_acp63,snd_acp_pci,snd_pci_ps,snd_sof_amd_renoir
snd_soc_acpi 20480 3 snd_sof_amd_acp,snd_acp_config,snd_pci_ps
snd_pci_acp3x 16384 0

Revision history for this message
blszyn (blszyn) wrote :

The microphone is working in gnome desktop sessions with mainline daily build 6.9.0-060900rc4daily20240420-generic.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.