1. Unpair your Pi. Use bluetoothctl to remove any pairings it may have. On your phone, or other source, forget any pairings.
2. On the Pi, edit the bluealsa service unit
Code: Select all
sudo nano /lib/systemd/system/bluealsa.service
Code: Select all
ExecStart=/usr/bin/bluealsa --profile=a2dp-sink
3. Now, you're also going to want to start bluealsa-aplay. Systemd works good for that.
Code: Select all
sudo nano /etc/systemd/system/aplay.service
Code: Select all
[Unit]
Description=BlueALSA aplay service
After=bluetooth.service
Requires=bluetooth.service
[Service]
ExecStart=/usr/bin/bluealsa-aplay 00:00:00:00:00:00
[Install]
WantedBy=multi-user.target
Code: Select all
sudo systemctl enable aplay
Now you can pair and trust your phone (etc.) with the Pi, connect, and the phone's audio will play over the audio jack of the Pi.
[Most of this information comes from https://scribles.net/, which has many excellent guides for Bluetooth and BLE on the Pi]