From a8a4a233b9de64b1b15c06a00a945614c8b8065a Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 5 Feb 2014 12:26:59 +0200 Subject: [PATCH] android: Connect AVRCP once A2DP is connected In case of being the initiator of the A2DP connection also attempt to connect AVRCP. --- android/a2dp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/a2dp.c b/android/a2dp.c index a215ce230..962e7f510 100644 --- a/android/a2dp.c +++ b/android/a2dp.c @@ -45,6 +45,7 @@ #include "utils.h" #include "bluetooth.h" #include "avdtp.h" +#include "avrcp.h" #include "audio-msg.h" #include "audio-ipc.h" @@ -544,6 +545,7 @@ static void signaling_connect_cb(GIOChannel *chan, GError *err, error("avdtp_discover: %s", strerror(-perr)); goto failed; } + bt_avrcp_connect(&dev->dst); } else /* Init idle timeout to discover */ dev->idle_id = g_timeout_add_seconds(IDLE_TIMEOUT, idle_timeout, dev); -- 2.47.3