From 16c6bf15d544836becd77ae73a50f508d7bbf598 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 5 Feb 2014 12:27:00 +0200 Subject: [PATCH] android: Disconnect AVRCP once A2DP is disconnected If A2DP is disconnected also disconnect AVRCP. --- android/a2dp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/a2dp.c b/android/a2dp.c index 962e7f510..731fa1623 100644 --- a/android/a2dp.c +++ b/android/a2dp.c @@ -227,6 +227,8 @@ static void bt_a2dp_notify_state(struct a2dp_device *dev, uint8_t state) if (state != HAL_A2DP_STATE_DISCONNECTED) return; + bt_avrcp_disconnect(&dev->dst); + a2dp_device_free(dev); } -- 2.47.3