[Doc] Raspberry Pi 4: Sound setup with linux-aarch64

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

[Doc] Raspberry Pi 4: Sound setup with linux-aarch64

Postby anarki » Tue Oct 31, 2023 9:58 pm

Raspberry Pi4 did not output sound on a default installation of archlinuxarm with default linux-aarch64.

[b]Symptoms[/b]

As root:
- installed alsa alsa-utils pipewire pipewire-audio pipewire-pulse pipewire-alsa wireplumber
- aplay -L listed sysdefault:CARD=Headphones
- speaker-test -D sysdefault:Headphones -c 2 did output test signal
- snd_bcm2835.enable_headphones=1 present in /boot/config.txt had no effect

As user in group audio:
- aplay -L listed sysdefault:CARD=headphones
- speaker-test -D sysdefault:headphones -c 2 worked
- pactl shot list sinks had dummy output only: that was the real issue here

As user not in group audio:
- aplay -L did not list any device
- speaker-test did not work
- pactl shot list sinks had dummy output only: that was the real issue here

[b]Steps to solve it after a fresh installation[/b]

As root:
- install alsa alsa-utils pipewire pipewire-audio pipewire-pulse pipewire-alsa wireplumber pulsemixer uboot-tools
- append snd_bcm2835.enable_headphones=1 to line setenv bootargs [...] in /boot/boot.txt
- run /boot/mkscr (needs uboot-tools)
- reboot
- check /proc/cmdline for snd_bcm2835.enable_headphones=1
- set /boot/config.txt to only: enable_uart=1

As user not in group audio:
- run pactl list short sinks to make sure bcm2835 output is listed
- aplay -L will still be empty
- run speaker-test to ensure test sound is played
- run pulsemixer to ensure built in analog stereo is listed
Last edited by anarki on Wed Nov 01, 2023 8:24 am, edited 1 time in total.
anarki
 
Posts: 4
Joined: Fri Dec 21, 2018 9:56 am

Re: Raspberry Pi 4: Sound setup with linux-aarch64

Postby graysky » Tue Oct 31, 2023 11:56 pm

Not sure about linux-aarch64 have you tried with linux-rpi?
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [Doc] Raspberry Pi 4: Sound setup with linux-aarch64

Postby darksky » Wed Nov 01, 2023 8:51 am

Have you tried hdmi_drive=2 in config.txt
darksky
 
Posts: 35
Joined: Thu Oct 15, 2020 5:57 pm

Re: [Doc] Raspberry Pi 4: Sound setup with linux-aarch64

Postby anarki » Wed Nov 01, 2023 9:26 am

Thank you, graysky. Indeed I did and of course, sound worked out of the box.

Although I prefer to keep setup simple and I find dtoverlay configuration rather confusing. Since that Pi serves as an audio relay only, there is no need for h/w acceleration.
anarki
 
Posts: 4
Joined: Fri Dec 21, 2018 9:56 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 7 guests