Bug 24084 - no sound on raspberry pi
Summary: no sound on raspberry pi
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: arm Linux
Priority: Normal major
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL: https://groups.google.com/forum/#!top...
Whiteboard:
Keywords:
Depends on:
Blocks: 32166
  Show dependency treegraph
 
Reported: 2018-12-26 20:48 CET by Daniel Tartavel
Modified: 2023-09-01 00:07 CEST (History)
7 users (show)

See Also:
Source RPM: kernel-4.19.12-2.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Daniel Tartavel 2018-12-26 20:48:29 CET
Description of problem:
There is no sound on raspberry pi.
in pavucontrol the vu-meter is showing sound playing, but no sound in hdmi nor jack output.

so it seems a regression of the kernel 4.19 accordingly to this:
https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/jNMU5tWf7F0
Comment 1 Marja Van Waes 2018-12-27 22:42:38 CET
(In reply to Daniel Tartavel from comment #0)
> Description of problem:
> There is no sound on raspberry pi.
> in pavucontrol the vu-meter is showing sound playing, but no sound in hdmi
> nor jack output.
> 
> so it seems a regression of the kernel 4.19 accordingly to this:
> https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/jNMU5tWf7F0

Assigning to our kernel maintainers group

URL: (none) => https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/jNMU5tWf7F0
Assignee: bugsquad => kernel
CC: (none) => marja11

Comment 2 Daniel Tartavel 2019-03-09 12:21:19 CET
Hi,


Kernel 5.0.0 - no sounds ever, but multiple errors when trying to play souns in logs:
bcm2835_audio bcm2835_audio: vhci message timeout, msg=3
Comment 3 Daniel Tartavel 2019-03-09 13:00:55 CET
hi,

desinstalling pulsaudio and setting sound volume with alsamixer make sound working
Comment 4 Daniel Tartavel 2019-03-09 13:42:19 CET
no necessity to de-install pulseaudio; just use
alternatives --config soundprofile
to select alsa make sound working
So pulseaudio is the problem
Comment 5 Ezequiel Partida 2020-12-05 06:43:54 CET
Where can I downbload a raspberry pi mageia image?.

Regards

CC: (none) => ezequiel_partida

Comment 6 Morgan Leijström 2020-12-05 15:24:10 CET
I remember seeing some discussion and link on our forum and user dicuss mailing list.  Search there.

CC: (none) => fri

Comment 7 Nicolas Lécureuil 2021-03-07 20:09:43 CET
(In reply to Ezequiel Partida from comment #5)
> Where can I downbload a raspberry pi mageia image?.
> 
> Regards

you can find it in your mirrors, like: 

http://ftp.free.fr/mirrors/mageia.org/distrib/8/aarch64/install/images/

CC: (none) => mageia

Comment 8 Filip Komar 2021-04-06 02:57:07 CEST
(In reply to Daniel Tartavel from comment #4)
> no necessity to de-install pulseaudio; just use
> alternatives --config soundprofile
> to select alsa make sound working
> So pulseaudio is the problem

This is not helpul on my RPi4 4G.:
$ LC_ALL=C sudo alternatives --config soundprofile
[sudo] password for filip: 

There are 2 programs which provide 'soundprofile'.

  Selection    Command
-----------------------------------------------
 + 1           /etc/sound/profiles/alsa
*  2           /etc/sound/profiles/pulse

Enter to keep the current selection[+], or type selection number: 1

No change.

$ pacmd list-cards
0 card(s) available.

$ dmesg | grep sound
[    1.375703]   No soundcards found.

Mcc also doesn't show any.

I tried to use /boot/config.txt from Raspbian (where Kodi worked over HDMI even with CEC) and different settings there but no joy.

$ uname -a
Linux rpi4 5.10.27-desktop-1.mga8 #1 SMP PREEMPT Tue Mar 30 23:16:57 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

$lsmod | grep snd # produces no output on mga8.
This is output from Raspbian SD boot:
Module                  Size  Used by
snd_soc_core          225280  1 vc4
snd_compress           20480  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_bcm2835            28672  5
snd_pcm               106496  5 snd_compress,vc4,snd_pcm_dmaengine,snd_bcm2835,snd_soc_core
snd_timer              32768  1 snd_pcm
snd                    77824  15 snd_compress,snd_timer,snd_bcm2835,snd_soc_core,snd_pcm

I don't understand that module is listed, modinfo describe it but insmod can't find it:
$ ls -lR /lib/modules/5.10.27-desktop-1.mga8/kernel/drivers/ | grep snd
-rw-r--r-- 1 root root 7852 mar 31 01:31 snd-bcm2835.ko.xz

$ sudo modinfo snd_bcm2835
[sudo] password for filip: 
filename:       /lib/modules/5.10.27-desktop-1.mga8/kernel/drivers/staging/vc04_services/bcm2835-audio/snd-bcm2835.ko.xz
alias:          platform:bcm2835_audio
license:        GPL
description:    Alsa driver for BCM2835 chip
author:         Dom Cobley
depends:        vchiq
staging:        Y
intree:         Y
name:           snd_bcm2835
vermagic:       5.10.27-desktop-1.mga8 SMP preempt mod_unload aarch64
parm:           force_bulk:Force use of vchiq bulk for audio (bool)
parm:           enable_hdmi:Enables HDMI virtual audio device (bool)
parm:           enable_headphones:Enables Headphones virtual audio device (bool)
parm:           enable_compat_alsa:Enables ALSA compatibility virtual audio device (bool)
parm:           num_channels:Number of audio channels (default: 8) (int)

$ sudo insmod snd_bcm2835
insmod: ERROR: could not load module snd_bcm2835: No such file or directory
But IIRC I could load it on previous kernel (5.10.25) but the same results.
I can retest in 5.10.25 if needed.

Is there a problem with Device Tree? I'm lost there. Don't even know how to check.
Besides that there are some *.dtb in /boot and many *.dtbo in /boot/overlays.

CC: (none) => filip.komar

Comment 9 Dave Hodgins 2021-04-06 03:49:20 CEST
pacmd is for pulse audio, but even with alsa tools, on my rpi4 B,
[    0.673389] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-01-08T14:31:16
[    0.687494] ALSA device list:
[    0.689366]   No soundcards found

CC: (none) => davidwhodgins

Barry Jackson 2021-04-24 12:24:06 CEST

CC: (none) => zen25000

Comment 10 Filip Komar 2021-04-24 15:47:43 CEST
I think we should create a new bug as Daniels solution doesn't help on RPi4.

I tested if files from Raspbian 64-bit *.dtb, *.dat, *.elf, bootcode.bin and overlays content would help with audio.

It probably didn't. I tried to boot but the boot was seriously compromised. Wireless keyboard on USB2 was not working, SSD on USB3 was not mounted (systemd reported Dependancy failed). 
Didn't dig deeper, just quickly reverted over luckily working ssh and rebooted.

Any idea how to proceed?
Filip Komar 2023-09-01 00:07:32 CEST

Blocks: (none) => 32166


Note You need to log in before you can comment on or make changes to this bug.