balena-io-experimental / balena-sound

Build a single or multi-room streamer for an existing audio device using a Raspberry Pi! Supports Bluetooth, Airplay and Spotify Connect
https://balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/
MIT License
2.39k stars 427 forks source link

no sound on jack #576

Open Moule0169 opened 2 years ago

Moule0169 commented 2 years ago

Hello, I am a new user of Balena Sound, which I have just installed on a Raspberry Pi 4B. OS 2.95.8 Supervisor 12.1.38

The services are active (except the hostname), I can connect via spotify, but I have sound only on the HDMI0 port, not on the 3.5mm jack, nor on the HDMI1. I was in version 3.8.5, I tried to upgrade to 3.8.4 because I saw that a bug had been solved this way in February. I also forced the AUDIO_OUTPUT variable to RPI_HEADPHONES, but it doesn't change anything, the sound is still coming out of the HDMI0 plug.

Can anyone help me? Thank you,

hcwf commented 2 years ago

I have a similar problem on my Raspberry Pi 4. I can't get any audio from the 3.5mm jack, haven't checked HDMI yet.

I looked into the logs and found this when starting: audio E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.

It seems to try different profiles but none seem to work: audio E: [pulseaudio] module-alsa-card.c: Failed to find a working profile. audio E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="0" name="platform-fef00700.hdmi" card_name="alsa_card.platform-fef00700.hdmi" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=yes card_properties="module-udev-detect.discovered=1""): initialization failed. audio E: [pulseaudio] module-alsa-card.c: Failed to find a working profile. audio E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="platform-fef05700.hdmi" card_name="alsa_card.platform-fef05700.hdmi" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=yes card_properties="module-udev-detect.discovered=1""): initialization failed.

What I tried so far:

MahmudThomas commented 2 years ago

I am also having this issue. I've been looking through the issues tab and the belena forums and I cant find a response for this question. If I find one I will link it here.

Blazin64 commented 2 years ago

@Moule0169 @hcwf @MahmudThomas @tommyzat

I was having a similar issue, but have audio working after making some changes. I selected my Raspberry Pi device from the balena cloud dashboard and made the following changes:


Device variables:

Name Value
AUDIO_OUTPUT RPI_HEADPHONES
SOUND_VOLUME 100

Device configuration:

Delete the vc4-kms-v3d entry from "Define DT overlays".

(Found in this thread.)


After a reboot, I had working Spotify and Bluetooth audio. I hope this also works for your devices! 😀

hcwf commented 2 years ago

@Blazin64 Thank you, deleting that entry actually worked! My sound is working now.

pechano commented 1 year ago

Thank you Blazin64! Your solution also worked for me.

Bananz0 commented 1 week ago

Doing this on my Pi4 makes it spam some errors and using this "vc4-kms-v3d-pi4" fixes it.