I am trying to use BalenaSound on the Rpi 3A+ but none of the images I have tried for the Rpi 3 will play audio or work (Reg/64bit OS/New images/Older images/Production/Development). I am trying to run audio through my audio interface via usb.
When I try the regular Rpi 3 images I get
exec /usr/local/bin/docker-entrypoint.sh: exec format error
When I tried the 64bit OS Rpi 3 images I get multiroom-client errors.
multiroom-client 2023-05-16 05-50-25.716 [Error] (Controller) Error: Connection refused
multiroom-client 2023-05-16 05-50-25.717 [Error] (Connection) Error in socket shutdown: Socket not connected
multiroom-client 2023-05-16 05-50-26.719 [Error] (Connection) Failed to connect to host '192.168.55.135', error: Connection refused
Any help would be great.
Thank you for your help and for taking the the time to write a response to this post. The cause of the issue was my 18i8 Focusrite audio interface (second gen). I purchased a scarlette solo from sweetwater and everything is now running smoothly on my RPI 3A+.
For anyone who ends up here while troubleshooting, the following links helped me.
github.com/balena-labs-projects/balena-sound
I get these errors when connecting my Scarlett 18i8 to RPI4:
audio E: [pulse…audio] module-loopback.c: No such sink.
audio E: [pulseaudio] module.c: Failed to load module "module-loopback" (argument: "latency_msec=200 source=balena sound.output.monitor sink=alsa_output.usb-soundcard-0.analog-surround-71"): initialization failed.
audio E: [pulseaudio] main.c: Sink alsa_output.usb-soundcard-0.analog-surround-71 does not exist.
audio E: [pulseaudio] main.c: Sink alsa_output.usb-soundcard-0.analog-surround-71 does not exist.
How I understand it, is it because the output sink's profile name is hardcoded to be "analog-stereo" -> "alsa_output.${USB_CARDS}.analog-stereo". Is there any way to make it auto detect this variabel?
Setting "Device variable" in "balena-cloud" solves the problem for me, but then it has to be changed everytime I want to swap device.
AUDIO_OUTPUT = alsa_output.usb-soundcard-0.analog-surround-71
HOST OS VERSION
[balenaOS 2.98.11]
development
SUPERVISOR VERSION
[12.11.38]
Currently for a Pi 3 64-bit OS device the "Define DT overlays" device configurat…ion is set by default upon first provisioning to `"vc4-kms-v3d"`.
This results in a non-working audio setup (no output via 3.5mm jack or via HDMI):
root@028daea:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi [vc4-hdmi], device 0: MAI PCM vc4-hdmi-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
As mentioned by Florin (and tested working by me) in the [Flowdock thread](https://www.flowdock.com/app/rulemotion/r-resinos/threads/OHq5stG0_g0H_zlqm5eAJKWsFOF) below, this needs to be changed to: `"vc4-kms-v3d,audio=off",""` which will then allow the audio to work on first boot.
root@028daea:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 7/7
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
Subdevices: 1/1
Subdevice #0: subdevice #0
Related to: https://github.com/balenalabs/balena-sound/issues/82