[pulseaudio-discuss] [PATCH v5] bluetooth: Add support for automatic switch between hsp and a2dp profiles

Pali Rohár pali.rohar at gmail.com
Mon Aug 1 19:18:29 UTC 2016


On Thursday 28 July 2016 08:58:25 Arun Raghavan wrote:
> On Fri, 22 Jul 2016, at 04:48 PM, Pali Rohár wrote:
> > On Friday 22 July 2016 16:20:51 Arun Raghavan wrote:
> > > (I had to fix up your patch due to recent changes in how card
> > > profiles are selected by policy modules. Also, the
> > > will_need_revert_card_map would probably not have worked in your
> > > patch since you were using the pa_card_new_data to put() into
> > > the map, but looking up based on the pa_card. This should be
> > > fixed by the hook change. If you could take a look and test,
> > > I'll push this out.)
> > 
> > Hi! I tested my v4 version of patch with pulseaudio 5.0 which I
> > have on my Ubuntu 12.04 desktop. And with pulseaudio 5.0 it is
> > working fine, I'm using it daily...
> > 
> > I can try to install pulseaudio from git into system to have a
> > test, but I do not know if my Ubuntu box does not refuse such
> > giant upgrade...
> 
> I've pushed this out now. You can see how to build it for 12.04 in:
> 
>  
> https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/.travis.yml?
> id=3033fec287c40ba5d0c862b9c3642fbc2b9bf0b0

That is for Ubuntu 14.04, not 12.04... but I was able to built last git 
master branch (small problem with switching to gcc-4.8 for C++11 
support) and install it...

> I'd appreciate some more testing from folks who're using BT headsets
> regularly. I'll do some here as well.

So... I tested pulseaudio from last commit in master branch on Ubuntu 
12.04 with KDE4 desktop. Without module-card-restore it is working 
perfectly, no problem.

With active module-card-restore there there is one big problem, both 
modules module-bluetooth-policy and module-card-restore start to fight 
with changing profile between a2dp and hsp. module-bluetooth-policy 
wants hsp, but module-card-restore wants revert back to a2dp. Anyway, 
fix for this is simple. I tested it and expect git format patch on 
mailing list in few minutes...

-- 
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20160801/82744de0/attachment.sig>


More information about the pulseaudio-discuss mailing list