Hello guidol,
Thank you for this great tutorial. I can confirm that this is works also on Devuan 2 (based on Debian 9). I only had to install one additional package: libdbus-1-dev.
The autoconnect did not worked, but manually connecting in /etc/rc.local did:
export LIBASOUND_THREAD_SAFE=0
bluealsa &
sleep 1 && /bin/echo -e 'connect 09:10:67:34:24:40\nquit\n' | bluetoothctl
However, even if i created ~/.asoundrc as you've suggested,
defaults.bluealsa.interface "hci0"
defaults.bluealsa.device "09:10:67:34:24:40"
defaults.bluealsa.profile "a2dp"
defaults.bluealsa.delay 10000
ALSA does not list the BT speaker. The system does recognize it, i hear it playing the connect/disconnect signals, but aplay cannot play through it. If i run
aplay -D bluealsa:HCI=hci0,DEV=09:10:67:34:24:40,PROFILE=a2dp fancy2.wav
The result is:
ALSA lib conf.c:4858:(parse_args) Unknown parameter HCI
ALSA lib conf.c:4991:(snd_config_expand) Parse arguments error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa:HCI=hci0,DEV=09:10:67:34:24:40,PROFILE=a2dp
aplay: main:788: audio open error: No such file or directory
aplay -L also does not list anything aside the RPi3's own devices. I know, that there is a known problem about RPi3 that it's WiFi conflicts with the BT dongle, but i use no WiFi, it's connected with ethernet cable. I've blocked blacklist modules brcmfmac and brcmutil and also disabled both WiFi and the onboard BT in /boot/config.txt, but to no avail.
Can you please advise me, what could i miss?