Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

No sound output on laptop speakers and wired devices

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
andpg
Posts: 5
Joined: 2022-01-17 22:34

No sound output on laptop speakers and wired devices

#1 Post by andpg »

Last week I got a brand new ASUS Vostro 3405 laptop. It shipped with Ubuntu 21.10, and the speakers worked just fine (so I'm sure hardware's not the issue). However, after I switched to Debian (11 bullseye), there was no sound from the speakers. Gnome says the volume is at 100%, alsamixer and pavucontrol too. I googled for solutions and I tried killing/restarting PulseAudio, but no luck. I thought a newer kernel with newer drivers would solve the problem, but I upgraded to Unstable and I still have the same problem.
I just tried some wired headphones and speakers, and they don't work either. Audio in bluetooth devices works fine.

Output for some commands:

Code: Select all

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: Generic Analog [Generic Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  
$ lspci -v | grep -A6 Audio
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
	Subsystem: Dell Raven/Raven2/Fenghuang HDMI/DP Audio Controller
	Flags: bus master, fast devsel, latency 0, IRQ 67, IOMMU group 12
	Memory at c06c8000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

--
04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
	Subsystem: Dell Raven/Raven2/FireFlight/Renoir Audio Processor
	Flags: bus master, fast devsel, latency 0, IRQ 62, IOMMU group 12
	Memory at c0680000 (32-bit, non-prefetchable) [size=256K]
	Capabilities: <access denied>
	Kernel driver in use: snd_pci_acp3x
	Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x

04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
	Subsystem: Dell Family 17h (Models 10h-1fh) HD Audio Controller
	Flags: bus master, fast devsel, latency 0, IRQ 34, IOMMU group 12
	Memory at c06c0000 (32-bit, non-prefetchable) [size=32K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

$ inxi -SMA
System:
  Host: pimienta Kernel: 5.15.0-2-amd64 x86_64 bits: 64 Desktop: GNOME 41.2
    Distro: Debian GNU/Linux bookworm/sid
Machine:
  Type: Laptop System: Dell product: Vostro 3405 v: 1.4.7
    serial: <superuser required>
  Mobo: Dell model: 0Y6PDY v: A01 serial: <superuser required> UEFI: Dell
    v: 1.4.7 date: 05/31/2021
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    driver: snd_pci_acp3x
  Device-3: AMD Family 17h HD Audio driver: snd_hda_intel
  Sound Server-1: ALSA v: k5.15.0-2-amd64 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: yes
  Sound Server-3: PipeWire v: 0.3.43 running: yes
I would love to debug this on my own but I can't find anything online so I come to you. What would you do now?

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2064
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: No sound output on laptop speakers and wired devices

#2 Post by FreewheelinFrank »

Please post output of

Code: Select all

# dmesg | grep 'snd\|audio\|firmware'

andpg
Posts: 5
Joined: 2022-01-17 22:34

Re: No sound output on laptop speakers and wired devices

#3 Post by andpg »

Here it is Frank

Code: Select all

# dmesg | grep 'snd\|audio\|firmware'
[    2.006142] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_gpu_info.bin
[    2.006201] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_sdma.bin
[    2.006811] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_asd.bin
[    2.006835] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_ta.bin
[    2.006854] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_pfp.bin
[    2.006870] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_me.bin
[    2.006882] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_ce.bin
[    2.006903] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_rlc.bin
[    2.006995] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_mec.bin
[    2.007082] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_mec2.bin
[    2.008002] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/raven_dmcu.bin
[    2.008119] amdgpu 0000:04:00.0: firmware: direct-loading firmware amdgpu/picasso_vcn.bin
[    2.008121] [drm] Found VCN firmware Version ENC: 1.12 DEC: 2 VEP: 0 Revision: 9
[    2.008125] amdgpu 0000:04:00.0: amdgpu: Will use PSP to load VCN firmware
[    2.998294] snd_pci_acp3x 0000:04:00.5: ACP audio mode : 2
[    3.026134] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[    3.026267] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[    3.217796] snd_hda_intel 0000:04:00.1: Handle vga_switcheroo audio client
[    3.296577] snd_hda_intel 0000:04:00.1: bound 0000:04:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[    3.335115] snd_hda_codec_generic hdaudioC1D0: autoconfig for Generic: line_outs=1 (0x2c/0x0/0x0/0x0/0x0) type:speaker
[    3.335135] snd_hda_codec_generic hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.335138] snd_hda_codec_generic hdaudioC1D0:    hp_outs=1 (0x24/0x0/0x0/0x0/0x0)
[    3.335142] snd_hda_codec_generic hdaudioC1D0:    mono: mono_out=0x0
[    3.335144] snd_hda_codec_generic hdaudioC1D0:    inputs:
[    3.335148] snd_hda_codec_generic hdaudioC1D0:      Internal Mic=0x44
[    3.335151] snd_hda_codec_generic hdaudioC1D0:      Mic=0x34
[    3.358311] rtw_8821ce 0000:03:00.0: firmware: direct-loading firmware rtw88/rtw8821c_fw.bin
[    3.601718] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8821c_fw.bin
[    3.601977] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8821c_config.bin
[    3.862192] r8169 0000:02:00.0: firmware: direct-loading firmware rtl_nic/rtl8106e-1.fw
[   11.203728] rtw_8821ce 0000:03:00.0: failed to get tx report from firmware
[  109.087759] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2064
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: No sound output on laptop speakers and wired devices

#4 Post by FreewheelinFrank »

What does

Code: Select all

pacmd list-sinks
say?

andpg
Posts: 5
Joined: 2022-01-17 22:34

Re: No sound output on laptop speakers and wired devices

#5 Post by andpg »

FreewheelinFrank wrote: 2022-01-18 18:12 What does

Code: Select all

pacmd list-sinks
say?

Code: Select all

$ pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_04_00.6.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9039
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Estéreo
	used by: 0
	linked by: 1
	configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms
	card: 1 <alsa_card.pci-0000_04_00.6>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "Generic Analog"
		alsa.id = "Generic 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 0xc06c0000 irq 69"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:04:00.6"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04: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 (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2064
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: No sound output on laptop speakers and wired devices

#6 Post by FreewheelinFrank »

Sorry for the delay. I don't think this is a simple issue: the speakers are the active port, they're not muted and the volume is turned up.

There are various issues I think (I'm just a user, not an expert in this).

The sound card does not seem to be fully recognised - there is no codec ALCxxx.

Code: Select all

card 1: Generic_1 [HD-Audio Generic], device 0: Generic Analog [Generic Analog]
There is no HDMI output in Pulseaudio.

The root issue I think is the

Code: Select all

Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
Which uses a new driver and kernel module:

Code: Select all

Kernel driver in use: snd_pci_acp3x
	Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x
Google the above and you will find a lot of people with the same problem.

Possible solutions seem to be blacklisting the troublesome module, forcing a legacy driver, disabling an re-enabling a module, or downgrading to a previous kernel which doesn't use the buggy new driver/module. I am not expert enough to suggest anything on what to try. (But I'll do some more research and see if I can find a solution that matches your set up.) Of course eventually you should find that an update fixes it.

I wonder if it is possible to bypass all this and direct sound to the card directly? Does this produce any sound?

Code: Select all

$ aplay /dev/urandom -f dat -D plughw:1,0

andpg
Posts: 5
Joined: 2022-01-17 22:34

Re: No sound output on laptop speakers and wired devices

#7 Post by andpg »

I suspected it wouldn't be simple after all the time put into it. Your idea with aplay and the card didn't work BTW. All it did was keeping Youtube videos from loading while it was running for some reason (now I realize I should've checked journalctl and dmesg then. my bad). I've restarted a couple times from then and now it only gives me this error:

Code: Select all

$ aplay /dev/urandom -f dat -D plughw:1,0
aplay: main:831: audio open error: Dispositivo o recurso ocupado
Busy device or resource.

I also tried the workaround blacklisting snd_rn_pci_acp3x, but it didn't work for me. I'm trying to find other solutions, but I'll probably just have to file a bug report and follow it to completion. What really confuses me is, how did it come to work in an updated Ubuntu install then? I'm thinking about booting an Ubuntu live usb and finding out. I'll tell you what I find if I do it.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2064
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: No sound output on laptop speakers and wired devices

#8 Post by FreewheelinFrank »

It will be. Interesting to see if Ubuntu works, or if Dell tweaked the configuration before shipping the laptop. If it works, obviously look for differences between the outputs posted previously.

shep
Posts: 423
Joined: 2011-03-15 15:22

Re: No sound output on laptop speakers and wired devices

#9 Post by shep »

My laptop had 2 sound cards - a traditional chip and the SoC.
I used the info in the Arch wiki to set one as the default.
If you have pulseaudio, the cards are referred to as sinks and you can set the default sink (card) through that interface.
See section 3.2 in the Arch wiki.
https://wiki.archlinux.org/title/Advanc ... chitecture
The wiki also suggests some other laptop pitfalls - some have "automute" which needs to be disabled with alsamixer or some laptop tools packages.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2064
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: No sound output on laptop speakers and wired devices

#10 Post by FreewheelinFrank »

shep wrote: 2022-01-19 19:21
If you have pulseaudio, the cards are referred to as sinks and you can set the default sink (card) through that interface.
The command

Code: Select all

$ pacmd list-sinks
tells us what sinks Pulseaudio can see, and it only sees the one. It seems to be the analogue card and unmuted and directing output to the right output (speakers).

Alsa sees two (the other being the HDMI card).

There is also a multimedia card which I assume handles mixing from various sources to available sinks. The analogue card seems to work OK with Linux, so I'm guessing the multimedia card is the problem here. Any thoughts appreciated.

andpg
Posts: 5
Joined: 2022-01-17 22:34

Re: No sound output on laptop speakers and wired devices

#11 Post by andpg »

Alright, I did it, here are my findings.

The speakers were indeed working in ubuntu. I checked out the same commands as before, and I found two big differences: aplay recognized the sound card as [CS8409/CS42L42 Analog] instead of generic analog, and dmesg listed messages from snd_hda_codec_cs8409 instead of snd_hda_codec_generic.

So I googled it. CS8409 is a sound card made by Cirrus Logic. First result is a list of kernel packages from Opensuse that supposedly provide snd_hda_codec_cs8409, ranging from 5.14 to 5.16 (I assume they're patched). I also found a thread in Ubuntu's mailing list from last month about a bug in this card (https://www.mail-archive.com/ubuntu-bug ... 80830.html). Apparently this thread wasn't solved.

And then I saw something about the "zen" kernel providing the codec too, so I said why not. It's easy to install on Debian, so let's see if it works.

I installed it and it works. So that's my workaround, let's hope this kernel won't break my system. (IDK if it's against best practices, but these guys have been doing this for years so I think I'll be trusting them by now.) Debian stable definitely should sort this out though!

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2064
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: No sound output on laptop speakers and wired devices

#12 Post by FreewheelinFrank »

Looks like Dell backported the driver to the Ubuntu kernel so it would work on their laptops.
So far this new "Dolphin" model of the CS8409 is confirmed to be used by some new Dell systems. Dolphin devices have a CS8409 HDA bridge connected to two CS42L42 codecs. It does appear Dell systems with this Dolphin audio are either to market already or coming quite soon as the support patch was already back-ported to one of Ubuntu's Linux 5.13 OEM kernel builds.

But in terms of the upstream support, all of the CS8409 patches as of yesterday made it into the sound subsystem's "for-next" branch ahead of the Linux 5.15 merge window.
https://www.phoronix.com/scan.php?page= ... inux-Audio

Post Reply