diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-05 12:27:00 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-02-05 14:44:20 +0100 |
commit | 16c6bf15d544836becd77ae73a50f508d7bbf598 (patch) | |
tree | bb93c3f42e67299d8980882d8210d14fa35b737c /android/a2dp.c | |
parent | a8a4a233b9de64b1b15c06a00a945614c8b8065a (diff) | |
download | bluez-16c6bf15d544836becd77ae73a50f508d7bbf598.tar.gz |
android: Disconnect AVRCP once A2DP is disconnected
If A2DP is disconnected also disconnect AVRCP.
Diffstat (limited to 'android/a2dp.c')
-rw-r--r-- | android/a2dp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |