PhoGGy
PhoGGy

Reputation: 23

Pulseaudio no audio via bluetooth a2dp connection buildroot

Edit:

I discovered, that if I run parec | paplay --raw it does play back properly. How is this possible? There should be just a simple module-loopback error or something like that.

I´m using the CHIP SBC from getchip.com to build an embedded bluetooth audio receiver. getchip.com offers a debian linux and a customizable buildroot distribution.

I got everything working on the debian distribution with one exception. The volume control with iOS devices don´t work because of the lack of uinput inside the debian kernel. That´s why i tried to get it to work with the buildroot distribution. It took me a while to get bluetoothd running with simple-agent, as well as pulseaudio built with bluetooth support and the dbus configuration. I finally got everything ready.

But: I can connect to the sbc, but there is no sound playing on the headphone jack.

My debugging steps so far:

Debug Logs:

Boot log

Pulseaudio verbose startup

/usr/bin/pulseaudio -vvvv --system --daemonize --disallow-exit

Bluetoothd verbose connection

/usr/libexec/bluetooth/bluetoothd -C -d &

and the bt-agent:

/usr/bin/bt-agent -d -c NoInputNoOutput -p /home/cubbo/.config/bluetooth-default-pin

Pulseaudio verbose connection

Configuration:

Pulseaudio system.pa

Pulseaudio daemon.conf

dbus system.conf

dbus-1/system.d/bluetooth.conf

dbus-1/system.d/pulseaudio-bluetooth.conf

bluetooth/audio.conf

bluetooth/main.conf

I´m pretty sure that I just miss some little configuration and it´ll play just fine. But after nearly one week of debugging I wanted to ask you for help.

I hope I´ve done everything right with attaching the logs via pastebin. I would appreciate your help!

Thanks! Greetings, Phil.

Upvotes: 0

Views: 2326

Answers (1)

I had a similar problem on Antergos, A2DP was not available in pulseaudio.

A2DP was available only when restarting bluethooth service by "systemctl restart bluethooth"

It resulted to be a problem caused by GDM that opened another instance of pulseaudio and captured the bluethooth device. I prevented pulseaudio capturing bluethooth device by masking it for GDM user.

https://wiki.archlinux.org/index.php/Bluetooth_headset#Connecting_works.2C_but_I_cannot_play_sound

$ mkdir -p ~/.config/systemd/user

$ ln -s /dev/null ~/.config/systemd/user/pulseaudio.socket

[restart required]

Upvotes: 2

Related Questions