<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Hello,<br><br></div>Thx for your feedback!<br><br></div>I understand better how it works now:<br><br><a href="https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/ApplicationProperties/">https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/ApplicationProperties/</a><br><br></div>So:<br><br></div>- I downloaded pulseaudio source<br></div>- patch with your patch <a target="_blank" rel="noreferrer" href="https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=bde2ff8794a9363b1f7f2c683b160268ce371770">https://cgit.freedesktop.org/<wbr>pulseaudio/pulseaudio/commit/?<wbr>id=<wbr>bde2ff8794a9363b1f7f2c683b1602<wbr>68ce371770</a></div>- 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<br></div>- Installed missing librairies :)<br></div>- re-run ./configure<br></div>- make clean && make && make install<br><br></div>Everthing seems (sounds :)) fine, but as i'm in bluez 5 the profile is not switching yet...<br></div>Which kind of log could I provide to help?<br><br></div>Thanks,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 September 2016 at 09:22, Pali Rohár <span dir="ltr"><<a href="mailto:pali.rohar@gmail.com" target="_blank">pali.rohar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Friday 02 September 2016 09:57:40 Greg wrote:<br>
> Hello community,<br>
><br>
> I'm using a BT headset with a microphone.<br>
><br>
> I'm using A2DP profile to listen music and HSP when using a softphone<br>
> (Jitsi).<br>
> Today, I have a key shortcut that toggle the profile when I'm receiving a<br>
> call (pacmd set-card-profile bluez_card.0C_E0_E4_8D_15_50<br>
> headset_head_unit).<br>
><br>
> This a manual intervention, and from what i understand, there seems to be a<br>
> way to do it automatically with module-blutetooth-policy?<br>
<br>
</span>Yes, new patch for module-bluetooth-policy [1] can do that. But IIRC it<br>
is only in git, not in some released PA version.<br>
<br>
Once some application create recording stream with media.role=phone then<br>
that policy module automatically switch to HSP and after stream is<br>
destroyed it switch back to A2DP.<br>
<br>
But it is still not complete, I need to finish it. Currently I tested it<br>
only for bluez4.<br>
<br>
[1] - <a href="https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=bde2ff8794a9363b1f7f2c683b160268ce371770" rel="noreferrer" target="_blank">https://cgit.freedesktop.org/<wbr>pulseaudio/pulseaudio/commit/?<wbr>id=<wbr>bde2ff8794a9363b1f7f2c683b1602<wbr>68ce371770</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Pali Rohár<br>
<a href="mailto:pali.rohar@gmail.com">pali.rohar@gmail.com</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><b><span style="font-family:verdana,sans-serif;color:rgb(102,0,204)"></span></b><b><span style="font-family:verdana,sans-serif;color:rgb(102,0,204)">GreeG</span></b></div>
</div>