[Raven/Raven2/FireFlight/Renoir AMD Ryzen] No Sound at all

Bug #1901157 reported by Moritz Wenzel
86
This bug affects 16 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After Upgrading to Ubuntu 20.10 (From 20.04) I noticed, that my Audio Output didn't work anymore.
Switching between different Kernel Versions (Mainline 5.8.16 and Ubuntu Stock 5.8.0-25, 5.4.0-52) doesn't change that. Even on a fresh 20.10 Livesystem i get the exact same problem (On 20.04 Livesystem it works)
An Output of "$ lspci -nnk | grep -A2 Audio" shows that the Output device uses the wrong Kernel Module (Audio Input is working since it uses the correct kernel module and driver)

07:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1637]
 Subsystem: Lenovo Device [17aa:5081]
 Kernel modules: snd_hda_intel
--
07:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor [1022:15e2] (rev 01)
 Subsystem: Lenovo Raven/Raven2/FireFlight/Renoir Audio Processor [17aa:5081]
 Kernel driver in use: snd_rn_pci_acp3x
 Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x
07:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller [1022:15e3]
 Subsystem: Lenovo Family 17h (Models 10h-1fh) HD Audio Controller [17aa:5081]
 Kernel modules: snd_hda_intel

Affected Device is a ThinkPad T14 with an AMD Ryzen 4750U

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: alsa-base 1.0.25+dfsg-0ubuntu5
Uname: Linux 5.8.16-050816-generic x86_64
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: moritz 2175 F.... pulseaudio
 /dev/snd/pcmC1D0c: moritz 2175 F...m pulseaudio
 /dev/snd/controlC0: moritz 2175 F.... pulseaudio
 /dev/snd/pcmC0D0c: moritz 2175 F...m pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: Budgie:GNOME
Date: Fri Oct 23 10:17:36 2020
InstallationDate: Installed on 2020-10-15 (7 days ago)
InstallationMedia: Ubuntu-Budgie 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:acp failed
Symptom_Card: Webcam Vitade AF - USB 2.0 Camera
Symptom_DevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: moritz 2175 F.... pulseaudio
 /dev/snd/pcmC1D0c: moritz 2175 F...m pulseaudio
 /dev/snd/controlC0: moritz 2175 F.... pulseaudio
 /dev/snd/pcmC0D0c: moritz 2175 F...m pulseaudio
Symptom_Type: No sound at all
Title: [acp - acp, playback] No sound at all
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/07/2020
dmi.bios.release: 1.9
dmi.bios.vendor: LENOVO
dmi.bios.version: R1BET40W(1.09 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20UD0013GE
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.9
dmi.modalias: dmi:bvnLENOVO:bvrR1BET40W(1.09):bd08/07/2020:br1.9:efr1.9:svnLENOVO:pn20UD0013GE:pvrThinkPadT14Gen1:rvnLENOVO:rn20UD0013GE:rvrNotDefined:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad T14 Gen 1
dmi.product.name: 20UD0013GE
dmi.product.sku: LENOVO_MT_20UD_BU_Think_FM_ThinkPad T14 Gen 1
dmi.product.version: ThinkPad T14 Gen 1
dmi.sys.vendor: LENOVO
modified.conffile..etc.modprobe.d.alsa-base.conf: [modified]
mtime.conffile..etc.modprobe.d.alsa-base.conf: 2020-10-23T01:18:30.406924

Revision history for this message
Moritz Wenzel (morxw) wrote :
Revision history for this message
Giuseppe Argentieri (joe-silver) wrote :

I have the same model and same problem. Nothing to add apart from a workaround which might be useful to address the problem, I hope.

1) I manually remove the module snd_rn_pci_acp3x.

Microphone stops working.

2) I restart pulseaudio with pulseaudio -k

Sound output starts working.

3) I manually reload snd_rn_pci_acp3x

Microphone detected and working again, without affecting the 'sink' (output).

On a side note, but somehow related, the led light of the mic button (F4) is always on, whether the mic is muted or not.

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

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

Changed in alsa-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
Nick Price (dominotree) wrote :

The above steps about removing snd_rn_pci_acp3x didn't work consistently for me, but one thing that *has* (albeit a pain) is to boot with snd_hda_intel blacklisted in /etc/modprobe.d/blacklist.conf and then when I'm logged in, comment out that line and load it with modprobe.

I still get weird behavior as mentioned above with the keyboard indicators, but it does seem to otherwise resolve the issue.

Revision history for this message
Florian Beier (flobeier) wrote :

I use this small script based on Giuseppe's findings as a workaround:

#!/bin/bash
sudo modprobe -r snd_rn_pci_acp3x
systemctl --user restart pulseaudio
sudo modprobe snd_rn_pci_acp3x

Revision history for this message
Thore (portram) wrote :

I also have the same problem now on Pop!_OS 20.04 after installing some updates. I suspect libasound2:amd64 (1.2.2-2.1ubuntu2, 1.2.2-2.1ubuntu2.1) beeing responsible, since this is the only sound related update that I installed today.

I also tried 20.10 two weeks ago and had the exact same issue there, so I went back to 20.04 ...

Revision history for this message
Sebastien Bacher (seb128) wrote :

> I suspect libasound2:amd64 (1.2.2-2.1ubuntu2, 1.2.2-2.1ubuntu2.1) beeing responsible, since this is the only sound related update that I installed today.

Could you try to install back the old version (the deb files are on https://launchpad.net/ubuntu/+source/alsa-lib/1.2.2-2.1ubuntu2/+build/19854508) and confirm if it resolves your issue?

tags: added: focal regression-update
Revision history for this message
Hui Wang (hui.wang) wrote :

@Thore,

Please try this libasound2 (ubuntu 20.04):

sudo add-apt-repository ppa:hui.wang/pa-testing
sudo apt install libasound2

This will install the testing version 1.2.2-2.1ubuntu2.1+testamd

Revision history for this message
Thore (portram) wrote :

I looked into the apt history and I actually updated the following sound related updates (these are the old version numbers that seemed to work)

- libasound2:amd64=1.2.2-2.1ubuntu2
- libasound2:i386=1.2.2-2.1ubuntu2
- libasound2-data:all=1.2.2-2.1ubuntu2
- alsa-utils:amd64=1.2.2-1ubuntu1

I could roll alsa-utils back since, this version 1.2.2-1ubuntu1 is still in the repos. That does NOT resolve the issue, I already did that before even posting here.

Then I downloaded libasound2_1.2.2-2.1ubuntu2_amd64.deb from the link you provided. I get the following message:
$ sudo dpkg -i ./libasound2_1.2.2-2.1ubuntu2_amd64.deb
[sudo] password for thore:
dpkg: warning: downgrading libasound2:amd64 from 1.2.2-2.1ubuntu2.1 to 1.2.2-2.1ubuntu2
(Reading database ... 309601 files and directories currently installed.)
Preparing to unpack libasound2_1.2.2-2.1ubuntu2_amd64.deb ...
De-configuring libasound2:i386 (1.2.2-2.1ubuntu2.1) ...
Unpacking libasound2:amd64 (1.2.2-2.1ubuntu2) over (1.2.2-2.1ubuntu2.1) ...
dpkg: error processing package libasound2:amd64 (--install):
 package libasound2:amd64 1.2.2-2.1ubuntu2 cannot be configured because libasound2:i386 is at a different version (1.2.2-2.1ubuntu2.1)
dpkg: error processing package libasound2:i386 (--install):
 package libasound2:i386 1.2.2-2.1ubuntu2.1 cannot be configured because libasound2:amd64 is at a different version (1.2.2-2.1ubuntu2)
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Errors were encountered while processing:
 libasound2:amd64
 libasound2:i386

I don't know what's wrong, but it is not working.

Kind regards
Thore

Revision history for this message
Thore (portram) wrote :

@Hui Wang

I get this

$ sudo add-apt-repository ppa:hui.wang/pa-testing
$ sudo apt install libasound2

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libasound2 : Depends: libasound2-data (>= 1.2.2-2.1ubuntu2.1+testamd) but 1.2.2-2.1ubuntu2.1 is to be installed
              Breaks: libasound2:i386 (!= 1.2.2-2.1ubuntu2.1+testamd) but 1.2.2-2.1ubuntu2.1 is to be installed
 libasound2:i386 : Breaks: libasound2 (!= 1.2.2-2.1ubuntu2.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Then

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libasound2 libasound2:i386 libasound2-data
The following packages will be upgraded:
  libasound2 libasound2:i386 libasound2-data
3 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
2 not fully installed or removed.
Need to get 770 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]

Is this the famous dependency hell everyone is talking about?

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

I already tested the testing package with 20.04, it worked.

And this is the testing package for 20.10, I don't know if this could fix the issue for 20.10 or maybe 20.10 needs more patches.

I built a testing package of libasound2 for 20.10, please install and test it:

sudo add-apt-repository ppa:hui.wang/pa-testing
sudo apt install libasound2

This will install the alsa-lib 1.2.3.2-1ubuntu3+testamd

reboot.

Revision history for this message
Florian Beier (flobeier) wrote :

@Hui Wang

I installed your package and rebooted. It seems to fix the issue, audio is working as expected again.

One thing I noticed is that when I mute the speakers or microphone via their media keys (F1 and F4) the LEDs on the keys don't light up. It may not be related to this issue though because when I activate the FnLock the LED on the Esc key also doesn't light up.

Revision history for this message
Thore (portram) wrote :

@Hui Wang

I installed everything and it seems work now properly as well on my T14.

Revision history for this message
Nikola Snele (n-schnelle) wrote :

Hi, installing older packages

sudo dpkg -i libasound2_1.2.2-2.1ubuntu2_amd64.deb libasound2-data_1.2.2-2.1ubuntu2_all.deb

fixed sound issues on my Lenovo Ideapad 5 14are05 with Ryzen 4500u.

Please release fix asap, this is a huge bug (to lose sound after update).

Revision history for this message
Nikola Snele (n-schnelle) wrote :

I can confirm that libasound2 from ppa:hui.wang/pa-testing works.

Revision history for this message
Dustin Nisbet-Jones (d.nisbetjones) wrote :

So far this libasound2 fix seems to work for me as well.

Acer Swift 3, Ryzen 4700U with Ubuntu 20.04 LTS & also recently updated to 20.10 (both versions effected).

Revision history for this message
Ronin Hinojos (frost5n) wrote :

This Libasound2 fix did not help me, and i still do not have hdmi audio. My laptop, and system are detecting it, and allowing me to select it, but when i select the hdmi option, there is no sound.

I am on a asus vivobook 15 with a ryzen 3 3200u mobile with vega graphics, and i am on ubuntu 20.10

Revision history for this message
erio (eri0) wrote :

this is broken for me after latest update in Ubuntu 20.04, on a Desktop AMD Ryzen machine.

Revision history for this message
Peter Müller (wipe1966) wrote :

@Hui Wang:

Mistake in Linux Mint 21.1:

 sudo add-apt-repository ppa:hui.wang/pa-testing
PPA kann nicht hinzugefügt werden: »'Dieses PPA unterstützt jammy nicht

What can I Do?

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.