I’ve an I2S DAC running on a Pi4 with a dtoverlay=allo-boss-dac-pcm512x-audio. It works fine for audio from the pi, but bluetooth from a connected phone doesn’t play despite connecting fine. I suspect I need to edit bluealsa-aplay.service to output to the DAC but I’ve spent all day on this without succes so wonder if anyone has a solution? - it would be most appreciated.
osmc@Dullahan:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: BossDAC [BossDAC], device 0: Boss DAC HiFi [Master] pcm512x-hifi-0 [Boss DAC HiFi [Master] pcm512x-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
I’ve tried modifiying bluealsa-aplay.service as below, but without success.
osmc@Dullahan:~$ cat /lib/systemd/system/bluealsa-aplay.service
[Unit]
Description=A2DP Playback
After=bluealsa.service syslog.service
Requires=bluealsa.service
StopWhenUnneeded=true
[Service]
ExecStartPre=/bin/sleep 3
ExecStart=/usr/bin/bluealsa-aplay -D front:CARD=BossDAC --profile-a2dp 00:00:00:00:00:00
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=A2DP-Playback
Restart=on-failure
[Install]
WantedBy=bluetooth.target
/boot/config-user.txt is:
sdtv_aspect=1
start_x=1
dtparam=audio=off
dtoverlay=allo-boss-dac-pcm512x-audio
and /boot.config.txt is unchanged from vanilla osmc:
[pi4]
dtoverlay=rpivid-v4l2
arm_64bit=1
kernel=kernel.img
[all]
dtoverlay=vc4-kms-v3d,cma-512
disable_overscan=1
start_x=1
disable_splash=1
disable_fw_kms_setup=1
hdmi_ignore_cec_init=1
include config-user.txt
[pi02]
dtoverlay=vc4-kms-v3d,cma-256
Does anyone know if there’s a solution for this? Bluetooth audio from the headphone 3.5mm jack works (by changing to “dtoverlay=pisound” and “dtparam=audio=on” and removing "-D front:CARD=BossDAC2 from bluealsa-aplay.service), but I’m using the Pi as a headless music system so would quite like to use the DAC.