I just deployed a new Raspberry Pi 4, and can’t seem to get audio coming out from AirPlay. It connects fine, but nothing comes out of the 3.5mm Jack.
After reading some threads, I deleted the “Define DT overlays” configuration and when I connected via Bluetooth, It played audio. But still no audio from AirPlay.
BalenaOS: 3.1.1
Balena Sound: 3.9.6
Raspberry Pi 4B
Airplay Log:
"
2023-08-02T16:42:52-04:00 airplay 2023-08-02 20:42:52,302 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2023-08-02T16:42:52-04:00 airplay 2023-08-02 20:42:52,323 INFO supervisord started with pid 1
2023-08-02T16:42:53-04:00 airplay 2023-08-02 20:42:53,335 INFO spawned: ‘nqptp’ with pid 8
2023-08-02T16:42:53-04:00 airplay 2023-08-02 20:42:53,344 INFO spawned: ‘shairport-sync’ with pid 9
2023-08-02T16:42:53-04:00 airplay Starting AirPlay plugin…
2023-08-02T16:42:53-04:00 airplay Device name: Room Channel - 1
2023-08-02T16:42:53-04:00 airplay Starting Shairport Sync
2023-08-02T16:42:53-04:00 airplay Shairport-sync started. Device is discoverable as Room Channel - 1
2023-08-02T16:42:53-04:00 airplay warning: could not acquire a Shairport Sync native D-Bus interface “org.gnome.ShairportSync.i10” on the system bus.
2023-08-02T16:42:53-04:00 airplay warning: could not acquire an MPRIS interface named “org.mpris.MediaPlayer2.ShairportSync.i10” on the system bus.
2023-08-02T16:42:54-04:00 airplay 2023-08-02 20:42:54,914 INFO success: nqptp entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-02T16:42:54-04:00 airplay 2023-08-02 20:42:54,915 INFO success: shairport-sync entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
"
Boot Logs:
2023-08-02T16:41:24-04:00 audio
2023-08-02T16:41:24-04:00 audio
2023-08-02T16:41:53-04:00 audio WARNING: BCM2835 audio card not found, are you sure you are running on a Raspberry Pi?
2023-08-02T16:41:53-04:00 audio Setting audio routing rules...
2023-08-02T16:41:53-04:00 audio Routing 'balena-sound.input' to 'balena-sound.output'.
2023-08-02T16:41:53-04:00 audio Routing 'balena-sound.output' to 'alsa_output.bcm2835-jack.stereo-fallback'.
2023-08-02T16:41:54-04:00 audio W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
2023-08-02T16:41:54-04:00 audio E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
2023-08-02T16:41:54-04:00 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.
2023-08-02T16:41:54-04:00 audio E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
2023-08-02T16:41:54-04:00 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.
2023-08-02T16:41:54-04:00 audio E: [pulseaudio] module-loopback.c: No such sink.
2023-08-02T16:41:54-04:00 audio E: [pulseaudio] module.c: Failed to load module "module-loopback" (argument: "latency_msec=200 source=balena-sound.output.monitor sink=alsa_output.bcm2835-jack.stereo-fallback"): initialization failed.
2023-08-02T16:41:54-04:00 audio E: [pulseaudio] main.c: Sink alsa_output.bcm2835-jack.stereo-fallback does not exist.
2023-08-02T16:41:54-04:00 audio E: [pulseaudio] main.c: Sink alsa_output.bcm2835-jack.stereo-fallback does not exist.
2023-08-02T16:41:54-04:00 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
2023-08-02T16:41:54-04:00 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
2023-08-02T16:42:49-04:00 Starting service 'airplay sha256:10e279e1c6b576de17ce50cea0a8790757a2aa00f4f773ca662771ed1d05436f'
2023-08-02T16:42:50-04:00 Started service 'airplay sha256:10e279e1c6b576de17ce50cea0a8790757a2aa00f4f773ca662771ed1d05436f'
2023-08-02T16:42:52-04:00 airplay 2023-08-02 20:42:52,302 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2023-08-02T16:42:52-04:00 airplay 2023-08-02 20:42:52,323 INFO supervisord started with pid 1
2023-08-02T16:42:53-04:00 airplay 2023-08-02 20:42:53,335 INFO spawned: 'nqptp' with pid 8
2023-08-02T16:42:53-04:00 airplay 2023-08-02 20:42:53,344 INFO spawned: 'shairport-sync' with pid 9
2023-08-02T16:42:53-04:00 airplay Starting AirPlay plugin...
2023-08-02T16:42:53-04:00 airplay Device name: Room Channel - 1
2023-08-02T16:42:53-04:00 airplay Starting Shairport Sync
2023-08-02T16:42:53-04:00 airplay Shairport-sync started. Device is discoverable as Room Channel - 1
2023-08-02T16:42:53-04:00 airplay warning: could not acquire a Shairport Sync native D-Bus interface "org.gnome.ShairportSync.i10" on the system bus.
2023-08-02T16:42:53-04:00 airplay warning: could not acquire an MPRIS interface named "org.mpris.MediaPlayer2.ShairportSync.i10" on the system bus.
2023-08-02T16:42:54-04:00 airplay 2023-08-02 20:42:54,914 INFO success: nqptp entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-02T16:42:54-04:00 airplay 2023-08-02 20:42:54,915 INFO success: shairport-sync entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-02T16:45:17-04:00 Starting service 'bluetooth sha256:22e12e9c384e3e7b5e67ed8e0b9366125b546f663d6814d734ba116cd839f28c'
2023-08-02T16:45:18-04:00 Started service 'bluetooth sha256:22e12e9c384e3e7b5e67ed8e0b9366125b546f663d6814d734ba116cd839f28c'
2023-08-02T16:45:18-04:00 bluetooth Running balena base image entrypoint...
2023-08-02T16:45:18-04:00 bluetooth --- Bluetooth ---
2023-08-02T16:45:18-04:00 bluetooth Starting bluetooth service with settings:
2023-08-02T16:45:18-04:00 bluetooth - Device name: Room Bluetooth - 1
2023-08-02T16:45:18-04:00 bluetooth - HCI interface: hci0
2023-08-02T16:45:18-04:00 bluetooth - Pairing mode: SSP
2023-08-02T16:45:18-04:00 bluetooth - PIN code: 0000
2023-08-02T16:45:18-04:00 bluetooth Available HCI interfaces: hci0
2023-08-02T16:45:18-04:00 bluetooth Resetting hci0
2023-08-02T16:45:18-04:00 bluetooth Configuring selected interface: hci0
2023-08-02T16:45:18-04:00 bluetooth hci0 Set Connectable complete, settings: powered connectable ssp br/edr le secure-conn
2023-08-02T16:45:18-04:00 bluetooth hci0 Set Bondable complete, settings: powered connectable bondable ssp br/edr le secure-conn
2023-08-02T16:45:18-04:00 bluetooth hci0 Set Discoverable complete, settings: powered connectable discoverable bondable ssp br/edr le secure-conn
2023-08-02T16:45:18-04:00 bluetooth hci0 Set Secure Simple Pairing complete, settings: powered connectable discoverable bondable ssp br/edr le secure-conn
2023-08-02T16:45:18-04:00 bluetooth Pairing mode set to 'Secure Simple Pairing Mode (SSPM)'. PIN code is NOT required.
2023-08-02T16:45:19-04:00 bluetooth Bluetooth agent started!
2023-08-02T16:45:19-04:00 bluetooth Checking for known bluetooth devices...
2023-08-02T16:45:19-04:00 bluetooth - Attempting to reconnect to Joeâs iPhone 14 Pro (5C:3E:1B:43:A0:2F)...
2023-08-02T16:45:20-04:00 bluetooth - Successfully connected to Joeâs iPhone 14 Pro (5C:3E:1B:43:A0:2F)...
2023-08-02T16:52:57-04:00 Supervisor starting
2023-08-02T16:52:20-04:00 spotify Starting Spotify plugin...
2023-08-02T16:52:20-04:00 spotify Device name: Room Channel - 1
2023-08-02T16:52:20-04:00 spotify [2023-08-02T20:52:20Z INFO librespot] librespot 0.4.2 UNKNOWN (Built on 2022-08-01, Build ID: leSkOw9g, Profile: release)
2023-08-02T16:52:20-04:00 spotify [2023-08-02T20:52:20Z WARN librespot] Could not initialise discovery: Setting up dns-sd failed: No such device (os error 19).
2023-08-02T16:52:20-04:00 spotify [2023-08-02T20:52:20Z ERROR librespot] Discovery is unavailable and no credentials provided. Authentication is not possible.
2023-08-02T16:52:24-04:00 spotify Starting Spotify plugin...
2023-08-02T16:52:24-04:00 spotify Device name: Room Channel - 1
2023-08-02T16:52:24-04:00 spotify [2023-08-02T20:52:24Z INFO librespot] librespot 0.4.2 UNKNOWN (Built on 2022-08-01, Build ID: leSkOw9g, Profile: release)
2023-08-02T16:52:24-04:00 sound-supervisor
2023-08-02T16:52:24-04:00 sound-supervisor > sound-supervisor@1.0.1 start /usr/src
2023-08-02T16:52:24-04:00 sound-supervisor > node build/index.js
2023-08-02T16:52:24-04:00 sound-supervisor
2023-08-02T16:52:47-04:00 sound-supervisor Sound supervisor listening on port 80
2023-08-02T16:52:47-04:00 sound-supervisor Error connecting to audio block - Retry failed: connect ECONNREFUSED 192.168.1.145:4317
2023-08-02T16:52:48-04:00 sound-supervisor Error connecting to audio block - Retry failed: connect ECONNREFUSED 192.168.1.145:4317
2023-08-02T16:52:50-04:00 sound-supervisor Error connecting to audio block - Retry failed: connect ECONNREFUSED 192.168.1.145:4317
2023-08-02T16:52:53-04:00 sound-supervisor Connected to PulseAudio at 192.168.1.145:4317
2023-08-02T16:52:53-04:00 sound-supervisor Server protocol version: 35
2023-08-02T16:52:53-04:00 sound-supervisor Client protocol version: 33
2023-08-02T16:52:22-04:00 audio
2023-08-02T16:52:22-04:00 audio --- Audio ---
2023-08-02T16:52:22-04:00 audio Starting audio service with settings:
2023-08-02T16:52:23-04:00 audio - pulseaudio 15.0
2023-08-02T16:52:23-04:00 audio - Pulse log level: NOTICE
2023-08-02T16:52:23-04:00 audio - Default output: RPI_HEADPHONES
2023-08-02T16:52:23-04:00 audio - Default volume: 75%
2023-08-02T16:52:23-04:00 audio
2023-08-02T16:52:23-04:00 audio Detected audio cards:
2023-08-02T16:52:23-04:00 audio 0 vc4hdmi0 vc4-hdmi-vc4-hdmi-0
2023-08-02T16:52:23-04:00 audio 1 vc4hdmi1 vc4-hdmi-vc4-hdmi-1
2023-08-02T16:52:23-04:00 audio
2023-08-02T16:52:23-04:00 audio
2023-08-02T16:52:52-04:00 audio WARNING: BCM2835 audio card not found, are you sure you are running on a Raspberry Pi?
2023-08-02T16:52:53-04:00 audio Setting audio routing rules...
2023-08-02T16:52:53-04:00 audio Routing 'balena-sound.input' to 'balena-sound.output'.
2023-08-02T16:52:53-04:00 audio Routing 'balena-sound.output' to 'alsa_output.bcm2835-jack.stereo-fallback'.
2023-08-02T16:52:53-04:00 audio W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
2023-08-02T16:52:53-04:00 audio E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
2023-08-02T16:52:53-04:00 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.
2023-08-02T16:52:53-04:00 audio E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
2023-08-02T16:52:53-04:00 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.
2023-08-02T16:52:53-04:00 audio E: [pulseaudio] module-loopback.c: No such sink.
2023-08-02T16:52:53-04:00 audio E: [pulseaudio] module.c: Failed to load module "module-loopback" (argument: "latency_msec=200 source=balena-sound.output.monitor sink=alsa_output.bcm2835-jack.stereo-fallback"): initialization failed.
2023-08-02T16:52:53-04:00 audio E: [pulseaudio] main.c: Sink alsa_output.bcm2835-jack.stereo-fallback does not exist.
2023-08-02T16:52:53-04:00 audio E: [pulseaudio] main.c: Sink alsa_output.bcm2835-jack.stereo-fallback does not exist.
2023-08-02T16:52:53-04:00 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
2023-08-02T16:52:53-04:00 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
Ok I Fixed It. These are the steps I took from a brand new RPI4B.
- Deleted the variable in “Define DT overlays”
- set AUDIO_OUTPUT to “RPI_AUTO”
That seemed to work with setting it to “RPI_AUTO”. I’m getting airplay out of the 3.5mm jack now.