Belana sound not outputting audio

Hi, I was following the tutorial on the website below, in order to use my raspberry pi zero w as a bluetooth receiver for my hifi. Whilst I am able to see the device as an option for bluetooth and airplay, there is no audio output. I think what makes this a bit more tricky is that the pi zero needs a DAC in order to connect a 3.5mm jack. In the tutorial it recommends adding a custom configuration: BALENA_HOST_CONFIG_dtoverlay with a value of hifiberry-dac. But I’m still not getting sound output. The DAC I am using is PCM5100A from: Audio DAC SHIM (Line-Out) — Pi Australia

Logs:

 audio  Waiting for sound supervisor to start at 172.17.0.1:80
 audio  Waiting for sound supervisor to start at 172.17.0.1:80
 audio  Waiting for sound supervisor to start at 172.17.0.1:80
 audio  Waiting for sound supervisor to start at 172.17.0.1:80
 audio  Setting audio routing rules...
 audio  Routing 'balena-sound.input' to 'balena-sound.output'.
 audio  Routing 'balena-sound.output' to 'alsa_output.dac.stereo-fallback'.
 audio  
 audio  --- Audio ---
 audio  Starting audio service with settings:
 audio  - pulseaudio 15.0
 audio  - Pulse log level: NOTICE
 audio  - Default output: AUTO
 audio  - Default volume: 75%
 audio  
 audio  Detected audio cards:
 audio  0 dac RPi-simple-snd_rpi_hifiberry_dac
 audio  
 audio  
 audio  Setting audio routing rules...
 audio  Routing 'balena-sound.input' to 'balena-sound.output'.
 audio  Routing 'balena-sound.output' to 'alsa_output.dac.stereo-fallback'.
 sound-supervisor  Error connecting to audio block - Retry failed: connect EHOSTUNREACH 192.168.1.129:4317
 audio  
 audio  --- Audio ---
 audio  Starting audio service with settings:
 audio  - pulseaudio 15.0
 audio  - Pulse log level: NOTICE
 audio  - Default output: AUTO
 audio  - Default volume: 75%
 audio  
 audio  Detected audio cards:
 audio  0 dac RPi-simple-snd_rpi_hifiberry_dac
 audio  
 audio  
 sound-supervisor  Error connecting to audio block - Retry failed: connect ECONNREFUSED 192.168.1.129:4317
 audio  Setting audio routing rules...
 audio  Routing 'balena-sound.input' to 'balena-sound.output'.
 audio  Routing 'balena-sound.output' to 'alsa_output.dac.stereo-fallback'.
Starting service 'multiroom-client sha256:8b930bc65643d3b0a9611b2c4cb4ba5722d805988351b3ff73fbcfa5dc807c0d'
Starting service 'bluetooth sha256:fd7091daaf5cf30d1250e0a2e92c58d9231c27aa02a4f7fa175fb34cade986a2'
Starting service 'multiroom-server sha256:811c94828d68f403777863ae458813da12142973125805134ff5bfd1bf4f830a'
 sound-supervisor  Error connecting to audio block - Retry failed: connect ECONNREFUSED 192.168.1.129:4317
 audio  W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
 audio  W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
 audio  W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
 sound-supervisor  Connected to PulseAudio at 192.168.1.129:4317
 sound-supervisor  Server protocol version: 35
 sound-supervisor  Client protocol version: 33
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 205.00 ms
Started service 'bluetooth sha256:fd7091daaf5cf30d1250e0a2e92c58d9231c27aa02a4f7fa175fb34cade986a2'
 bluetooth  Running balena base image entrypoint...
 bluetooth  --- Bluetooth ---
 bluetooth  Starting bluetooth service with settings:
 bluetooth  - Device name: balenaOS 917f
 bluetooth  - HCI interface: hci0
 bluetooth  - Pairing mode: SSP
 bluetooth  - PIN code: 0000
 bluetooth  Available HCI interfaces: hci0
 bluetooth  Resetting hci0
 bluetooth  Configuring selected interface: hci0
 bluetooth  hci0 Set Connectable complete, settings: powered connectable ssp br/edr le secure-conn 
 bluetooth  hci0 Set Bondable complete, settings: powered connectable bondable ssp br/edr le secure-conn 
 bluetooth  hci0 Set Discoverable complete, settings: powered connectable discoverable bondable ssp br/edr le secure-conn 
 bluetooth  hci0 Set Secure Simple Pairing complete, settings: powered connectable discoverable bondable ssp br/edr le secure-conn 
 bluetooth  Pairing mode set to 'Secure Simple Pairing Mode (SSPM)'. PIN code is NOT required.
 bluetooth  Bluetooth agent started!
 bluetooth  Checking for known bluetooth devices...
Started service 'multiroom-client sha256:8b930bc65643d3b0a9611b2c4cb4ba5722d805988351b3ff73fbcfa5dc807c0d'
 multiroom-client  
 multiroom-client  --- Multiroom ---
 multiroom-client  Starting multiroom service with settings:
 multiroom-client  - Mode: server
 multiroom-client  - Snapcast version: v0.25.0
 multiroom-client  Starting multi-room client...
 multiroom-client  - balenaSound mode: STANDALONE
 multiroom-client  - Target snapcast server: 192.168.1.129
 multiroom-client  Multi-room client disabled. Exiting...
Service exited 'multiroom-client sha256:8b930bc65643d3b0a9611b2c4cb4ba5722d805988351b3ff73fbcfa5dc807c0d'
Started service 'multiroom-server sha256:811c94828d68f403777863ae458813da12142973125805134ff5bfd1bf4f830a'
 multiroom-server  
 multiroom-server  --- Multiroom ---
 multiroom-server  Starting multiroom service with settings:
 multiroom-server  - Mode: server
 multiroom-server  - Snapcast version: v0.25.0
 multiroom-server  Multi-room server blacklisted for raspberry-pi. Exiting...
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 205.00 ms
Service exited 'multiroom-server sha256:811c94828d68f403777863ae458813da12142973125805134ff5bfd1bf4f830a'
 bluetooth  AuthorizeService (/org/bluez/hci0/dev_F4_BE_EC_E6_CE_74, 0000110d-0000-1000-8000-00805f9b34fb)
 audio  W: [pulseaudio] module-loopback.c: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead
 audio  W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 66.67 ms, adjusting to 250.00 ms
 audio  W: [pulseaudio] module-loopback.c: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead
 audio  W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 66.67 ms, adjusting to 250.00 ms
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 284.25 ms
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 205.00 ms
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 210.00 ms
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 210.00 ms
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 215.00 ms
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 220.00 ms
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 215.00 ms
 audio  W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 66.67 ms, adjusting to 68.54 ms
 audio  W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 66.67 ms, adjusting to 68.54 ms
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 220.00 ms
 audio  W: [pulseaudio] module-loopback.c: Too many underruns, increasing latency to 205.00 ms

Hi

Just to confirm you are not using a HiFiberry DAC, but have added that to the config. Is that right?

Can you check the list of supported DAC boards, and their config variable in the table given at Audio interfaces - Home
I think if I understood your setup correctly, that’s the only thing that needs to change.

Let us know how it goes!

I don’t think it’s a hifiberry, but from the website it says to specify that in the dtoverlay. I have put a quote from the website below if it helps:

Alternatively, if you’d rather not install all the Mopidy stuff, you can set Audio Amp SHIM as your default Alsa device in Raspberry Pi OS by adding the following lines to your /boot/config.txt file:

dtoverlay=hifiberry-dac
gpio=25=op,dh