[pulseaudio-discuss] Problem with bluez5 and a2dp.

Prathyush Thota prathyushthota at gmail.com
Thu Sep 11 03:59:40 PDT 2014


On Thu, Sep 11, 2014 at 1:04 PM, Luiz Augusto von Dentz <
luiz.dentz at gmail.com> wrote:

> 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
>

Yes, I think so. I was able to play an mp3 file using mplayer while the
pulseaudio instance was still on. This is how I confirmed the changes I
made to default.pa file.

I found couple of other posts complaining about a similar error, old ones
though:

http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-February/008856.html
http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-May/009989.html

Can I run pulseaudio any differently to be able to get to the cause of this
?

Prathyush


> >
> > 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
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20140911/be3e5193/attachment.html>


More information about the pulseaudio-discuss mailing list