linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 4/4] android: Disconnect AVRCP once A2DP is disconnected
Date: Wed,  5 Feb 2014 12:27:00 +0200	[thread overview]
Message-ID: <1391596020-27679-4-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1391596020-27679-1-git-send-email-luiz.dentz@gmail.com>

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

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 962e7f5..731fa16 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);
 }
 
-- 
1.8.5.3


  parent reply	other threads:[~2014-02-05 10:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 10:26 [PATCH BlueZ 1/4] android/AVRCP: Add bt_avrcp_connect Luiz Augusto von Dentz
2014-02-05 10:26 ` [PATCH BlueZ 2/4] android/AVRCP: Add bt_avrcp_disconnect Luiz Augusto von Dentz
2014-02-05 10:26 ` [PATCH BlueZ 3/4] android: Connect AVRCP once A2DP is connected Luiz Augusto von Dentz
2014-02-05 10:27 ` Luiz Augusto von Dentz [this message]
2014-02-05 13:45 ` [PATCH BlueZ 1/4] android/AVRCP: Add bt_avrcp_connect Szymon Janc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1391596020-27679-4-git-send-email-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).