<div dir="ltr"><div>Hi,<div><br></div><div>With these 8 set of v4 patches. I am able to connect to the Bluetooth handsfree device and switch the audio from profiles a2dp to headset_unit.</div><div>Also, I can see the SCO packets in btmon.</div><div>This patches working good now.</div><div><br></div><div><br></div><div>Thanks</div><div>Sathish N,</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 26, 2017 at 5:49 PM, Luiz Augusto von Dentz <span dir="ltr"><<a href="mailto:luiz.dentz@gmail.com" target="_blank">luiz.dentz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">From: Luiz Augusto von Dentz <<a href="mailto:luiz.von.dentz@intel.com">luiz.von.dentz@intel.com</a>><br>
<br>
If SCO fd is already set don't attempt to connect again.<br>
---<br>
 src/modules/bluetooth/backend-<wbr>ofono.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/modules/bluetooth/<wbr>backend-ofono.c b/src/modules/bluetooth/<wbr>backend-ofono.c<br>
index 755df9e..e18772d 100644<br>
--- a/src/modules/bluetooth/<wbr>backend-ofono.c<br>
+++ b/src/modules/bluetooth/<wbr>backend-ofono.c<br>
@@ -155,7 +155,7 @@ static int hf_audio_agent_transport_<wbr>acquire(pa_bluetooth_transport *t, bool opti<br>
<br>
     pa_assert(card);<br>
<br>
-    if (!optional) {<br>
+    if (!optional && card->fd < 0) {<br>
         DBusMessage *m;<br>
<br>
         pa_assert_se(m = dbus_message_new_method_call(<wbr>t->owner, t->path, "org.ofono.HandsfreeAudioCard"<wbr>, "Connect"));<br>
--<br>
2.9.3<br>
<br>
______________________________<wbr>_________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/pulseaudio-<wbr>discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards<br>Sathish N</div>
</div>