No sound output on Raspberry Pi 4 with balena-sound

I installed a new Raspberry Pi 4 (4GB) with balenaOS (64-bit) and balena-sound. Unfortunately, there’s no sound output to the headphone jack when streaming through Spotify or via Bluetooth. Running the following command in the audio container does work, though:

aplay --device=hw:CARD=Headphones \
  /usr/share/sounds/alsa/Front_Center.wav

So the port is definitely working.

The output of aplay -l:

**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 8/8
  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
  Subdevice #7: subdevice #7

I noted that the name of the output here is Headphones rather than bcm2835-jack, what I encountered here a lot in all the similar issues. Maybe that has something to do with it?

Another thing I consistently see is the following error in the audio container logs:

...
audio  E: [pulseaudio] backend-native.c: socket(SEQPACKET, SCO) Address family not supported by protocol
...

It’s the only (red) error in the logs of all services, and it always occurs when I’m trying to stream music to the device.

So far, I tried the following, in various combinations, but unsuccessfully:

  • RESIN_HOST_CONFIG_dtoverlay:
    • "vc4-kms-v3d,cma-320"
    • "cma-320"
    • "hifiberry-dacplushd"
  • RESIN_HOST_CONFIG_dtparam:
    • "i2c_arm=on","spi=on","audio=on"
    • "i2c_arm=on","spi=on","audio=off"
  • BALENA_HOST_CONFIG_dtoverlay:
    • iqaudio-dacplus
  • RESIN_HOST_CONFIG_hdmi_ignore_edid_audio
    • 1

At this point, I’m just randomly trying things, not knowing the ins and outs. Can someone help me on the way?