summaryrefslogtreecommitdiff
path: root/profiles/audio/control.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-03-18 10:03:26 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2013-04-04 20:48:07 +0300
commitbfe5f617940081844430871438410f956bbff78d (patch)
tree3e3f9abe2e228f429090b0a4baf81b4d5afb83f1 /profiles/audio/control.c
parente63b0f90354f1030e77e3defb052341351bdd92a (diff)
downloadbluez-bfe5f617940081844430871438410f956bbff78d.tar.gz
audio: Track connections to AVRCP roles separately
Currently the code assumes when one role connects the other must be connected as well which is bogus and can create problems.
Diffstat (limited to 'profiles/audio/control.c')
-rw-r--r--profiles/audio/control.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/profiles/audio/control.c b/profiles/audio/control.c
index 7e4ed42b2..6086bde66 100644
--- a/profiles/audio/control.c
+++ b/profiles/audio/control.c
@@ -76,13 +76,6 @@ static void state_changed(struct audio_device *dev, avctp_state_t old_state,
case AVCTP_STATE_DISCONNECTED:
control->session = NULL;
- if (old_state != AVCTP_STATE_CONNECTED) {
- audio_control_connected(dev->btd_dev, -EIO);
- break;
- }
-
- audio_control_disconnected(dev->btd_dev, 0);
-
g_dbus_emit_property_changed(conn, path,
AUDIO_CONTROL_INTERFACE, "Connected");
@@ -95,8 +88,6 @@ static void state_changed(struct audio_device *dev, avctp_state_t old_state,
break;
case AVCTP_STATE_CONNECTED:
- audio_control_connected(dev->btd_dev, 0);
-
g_dbus_emit_property_changed(conn, path,
AUDIO_CONTROL_INTERFACE, "Connected");
break;