[pulseaudio-discuss] Problem with bluez5 and a2dp.

Luiz Augusto von Dentz luiz.dentz at gmail.com
Thu Sep 11 00:34:30 PDT 2014


Hi,

On Thu, Sep 11, 2014 at 9:43 AM, Prathyush Thota
<prathyushthota at gmail.com> wrote:
> Hello,
>
> I have been trying my luck with bluez5.21 (built from source) and pulseaudio
> (built from pulseaudio/vudentzs-mainline:hfp-ofono-5.0). My intention is to
> get my Ubuntu 14.10 installation to be a handsfree unit. But, I had trouble
> getting HFP and A2DP to work.
>
> bluetoothctl shows that the 'Audio Source' and 'Audio Sink' profiles are
> registered:
>
> [bluetooth]# show
> Controller 7C:E9:D3:DD:XX:XX
>     Name: wolv
>     Alias: ubuntu-0
>     Class: 0x2c010c
>     Powered: yes
>     Discoverable: yes
>     Pairable: yes
>     UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
>     UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
>     UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
>     UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
>     UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
>     UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
>     UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
>     UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
>     Modalias: usb:v1D6Bp0246d0515
>     Discovering: no
> [bluetooth]#
>
> The debug log of pulseaudio had a bunch of messages similar to this :
>
> D: [alsa-sink-CX20590 Analog] module-loopback.c: Requesting rewind due to
> end of underrun.
> D: [alsa-sink-CX20590 Analog] alsa-sink.c: Requested to rewind 65536 bytes.
> D: [alsa-sink-CX20590 Analog] alsa-sink.c: Limited to 46336 bytes.
> D: [alsa-sink-CX20590 Analog] alsa-sink.c: before: 5792
> D: [alsa-sink-CX20590 Analog] alsa-sink.c: after: 0
> I: [alsa-sink-CX20590 Analog] alsa-sink.c: Tried rewind, but was apparently
> not possible.
>
> Here's the complete debug log (when I tried to switch the audio sink on my
> phone to bluetooth):
>
> http://pastebin.com/8ACF92Sk

Ive never experience such problem, in any case it does not look like a
Bluetooth problem since you get the transport configured and loopback
is loaded as well, btw are you sure your sink is working?

>
> There were similar messages when I try to make a call using the test scripts
> in ofono.
>
> I'm not sure if it's relevant but - I had to uncomment few lines in
> default.pa to load the alsa-sink and alsa-source (instead of relying on the
> auto detect) modules to get audio to work on my ubuntu installation with
> pulseaudio running. Otherwise, the null-sink was being picked up instead of
> alsa-sink.
>
> Any thoughts on why this is happening ?

Perhaps it is related to udev rules, iirc Ive replaced mine with the
one from the source tree otherwise it would fail to load the card
properly.

-- 
Luiz Augusto von Dentz


More information about the pulseaudio-discuss mailing list