[pulseaudio-discuss] module-bluetooth-policy : How to use auto switch profile?
Greg
greegthegeek at gmail.com
Mon Sep 5 13:19:53 UTC 2016
Hello,
Thx for your feedback!
I understand better how it works now:
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/ApplicationProperties/
So:
- I downloaded pulseaudio source
- patch with your patch https://cgit.freedesktop.org/
pulseaudio/pulseaudio/commit/?id=bde2ff8794a9363b1f7f2c683b160268ce371770
- configure with the following ./configure --enable-alsa --enable-bluez5
--enable-bluez5-native-headset --enable-gtk3 --with-speex --enable-x11
--enable-systemd-daemon --enable-systemd-login --enable-systemd-journal
--enable-webrtc-aec
- Installed missing librairies :)
- re-run ./configure
- make clean && make && make install
Everthing seems (sounds :)) fine, but as i'm in bluez 5 the profile is not
switching yet...
Which kind of log could I provide to help?
Thanks,
On 5 September 2016 at 09:22, Pali Rohár <pali.rohar at gmail.com> wrote:
> On Friday 02 September 2016 09:57:40 Greg wrote:
> > Hello community,
> >
> > I'm using a BT headset with a microphone.
> >
> > I'm using A2DP profile to listen music and HSP when using a softphone
> > (Jitsi).
> > Today, I have a key shortcut that toggle the profile when I'm receiving a
> > call (pacmd set-card-profile bluez_card.0C_E0_E4_8D_15_50
> > headset_head_unit).
> >
> > This a manual intervention, and from what i understand, there seems to
> be a
> > way to do it automatically with module-blutetooth-policy?
>
> Yes, new patch for module-bluetooth-policy [1] can do that. But IIRC it
> is only in git, not in some released PA version.
>
> Once some application create recording stream with media.role=phone then
> that policy module automatically switch to HSP and after stream is
> destroyed it switch back to A2DP.
>
> But it is still not complete, I need to finish it. Currently I tested it
> only for bluez4.
>
> [1] - https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=
> bde2ff8794a9363b1f7f2c683b160268ce371770
>
> --
> Pali Rohár
> pali.rohar at gmail.com
>
--
*GreeG*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20160905/b8145088/attachment.html>
More information about the pulseaudio-discuss
mailing list