Raspberry pi 4 - no audio

Ah, the default device type for my application is Raspberry Pi (v1 / Zero / Zero W).

Thanks, I just reproduced the issue on my device too. Looks like we need to try something elseā€¦ Back to the drawing board but Iā€™m on it!

1 Like

Quick updateā€¦

There are two problems at play here, both snapcast and pulseaudio are creating conflict depending on the version of each you are running. What got us in this mess is that both projects got new releases and their versions are not pinned. So depending on when you deployed your project it will work or not.

To avoid this we typically pin dependencies versions. Snapcastā€™s version was not pinned on purpose (I wonā€™t go into reasons here :D), but pulseaudio was an oversight.

Iā€™ll work on fixing this for current balenaSound iteration, but also to future proof it when new versions of our dependencies are released. It might take a bit longer but I hope to get it done by tomorrow.

3 Likes

Hi, and thanks for the update. I just love dependencies :smile:

Updated PR with fix (hopefully). Will test some more still.

just downloaded the patch/release and tested on my pi4B it works ! i have sound via Bluetooth from my iqaudio-dac amp plus

thank you ! ;o)

Also confirmed on the PR branch works on headphone jack on the RPi 4B as a multi-room client. It also worked on HDMI output, after setting AUDIO_OUTPUT=RPI_HDMI0.

I can also confirm I have sound, both from the onboard 3.5mm jack and my DAC.

1 Like

Thank you Tomas! With the latest PR, Iā€™ve got sound out of a Pi4B w/ USB DAC as a multi-room master, but nothing out of the multi-room clients (Pi Zero Ws w/ USB DACs). Looks like the multiroom-client service on those devices is in a restart loop:

07.03.21 22:22:42 (-0500) multiroom-client Starting multi-room clientā€¦
07.03.21 22:22:42 (-0500) multiroom-client snapclient v0.23.0
07.03.21 22:22:42 (-0500) multiroom-client Mode: MULTI_ROOM_CLIENT
07.03.21 22:22:42 (-0500) multiroom-client Target snapcast server: 192.168.1.6
07.03.21 22:22:42 (-0500) multiroom-client PCM device ā€œdefaultā€ not found
07.03.21 22:22:42 (-0500) multiroom-client 2021-03-08 03-22-42.899 [Notice] (Connection) Connected to 192.168.1.6
07.03.21 22:22:43 (-0500) multiroom-client metadata:{ā€œSTREAMā€:ā€œbalenaSoundā€}
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib confmisc.c:767:(parse_card) cannot find card ā€˜0ā€™
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
07.03.21 22:22:43 (-0500) multiroom-client 2021-03-08 03-22-43.115 [Error] (Alsa) Exception: Canā€™t open default, error: No such file or directory, code: -2
07.03.21 22:22:43 (-0500) multiroom-client 2021-03-08 03-22-43.126 [Fatal] (Snapclient) Exception: Canā€™t open default, error: No such file or directory
07.03.21 22:22:43 (-0500) multiroom-client 2021-03-08 03-22-43.131 [Notice] (Snapclient) Snapclient terminated.
07.03.21 22:22:43 (-0500) multiroom-client metadata:{ā€œSTREAMā€:ā€œbalenaSoundā€}
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib confmisc.c:767:(parse_card) cannot find card ā€˜0ā€™
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
07.03.21 22:22:43 (-0500) multiroom-client ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
07.03.21 22:22:43 (-0500) multiroom-client 2021-03-08 03-22-43.115 [Error] (Alsa) Exception: Canā€™t open default, error: No such file or directory, code: -2
07.03.21 22:22:43 (-0500) multiroom-client 2021-03-08 03-22-43.126 [Fatal] (Snapclient) Exception: Canā€™t open default, error: No such file or directory
07.03.21 22:22:43 (-0500) multiroom-client 2021-03-08 03-22-43.131 [Notice] (Snapclient) Snapclient terminated.
07.03.21 22:23:57 (-0500) multiroom-client Starting multi-room clientā€¦
07.03.21 22:23:57 (-0500) multiroom-client snapclient v0.23.0
07.03.21 22:23:57 (-0500) multiroom-client Mode: MULTI_ROOM_CLIENT
07.03.21 22:23:57 (-0500) multiroom-client Target snapcast server: 192.168.1.6
07.03.21 22:23:58 (-0500) multiroom-client PCM device ā€œdefaultā€ not found
07.03.21 22:23:58 (-0500) multiroom-client 2021-03-08 03-23-58.457 [Notice] (Connection) Connected to 192.168.1.6
07.03.21 22:23:58 (-0500) multiroom-client metadata:{ā€œSTREAMā€:ā€œbalenaSoundā€}
07.03.21 22:23:58 (-0500) multiroom-client ALSA lib confmisc.c:767:(parse_card) cannot find card ā€˜0ā€™
07.03.21 22:23:58 (-0500) multiroom-client ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
07.03.21 22:23:58 (-0500) multiroom-client ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
07.03.21 22:23:58 (-0500) multiroom-client ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
07.03.21 22:23:58 (-0500) multiroom-client ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
07.03.21 22:23:58 (-0500) multiroom-client ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
07.03.21 22:23:58 (-0500) multiroom-client ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
07.03.21 22:23:58 (-0500) multiroom-client ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
07.03.21 22:23:58 (-0500) multiroom-client 2021-03-08 03-23-58.735 [Error] (Alsa) Exception: Canā€™t open default, error: No such file or directory, code: -2
07.03.21 22:23:58 (-0500) multiroom-client 2021-03-08 03-23-58.751 [Fatal] (Snapclient) Exception: Canā€™t open default, error: No such file or directory
07.03.21 22:23:58 (-0500) multiroom-client 2021-03-08 03-23-58.755 [Notice] (Snapclient) Snapclient terminated.

Great news! iā€™ve just merged the fix into master. Thanks for helping out!

2 Likes

Thanks, great job!

Hey guys - Iā€™m pretty noob at all this but Iā€™ve managed to setup a 3B+ working completely fine. I

I then purchase a Raspberry Pi 4 and Iā€™m experiencing the same issues as above. I have tried adding this second device to the same fleet to get multi-room working.

Same as above - I can send audio to the Pi but no output. I understand that a patch was put out and merged into master but Iā€™m still experiencing this same issue of no audio output.

Like I said Iā€™m a beginner at raspberry pi projects in general - I was trying to open up one of the bash terminals to type in those audio-testing commands above but getting errors so iā€™m probably typing the commands in the wrong place. Any tips or suggestions welcome :slight_smile:

Hi @m-saberhagen

Can you share screenshots of where you are typing the commands?
Also, do share a screenshot of the fleet that you have as well - just want to check the OS type, and version