summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-20 09:05:02 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-20 09:05:02 +0000
commit3919df0168ddf293912231e5e6477bc6f0c24115 (patch)
tree63b406c8cd26dce9cdca433ab1b586f056fbd085 /audio/unix.c
parent730a4ceb9e7e986e2a327fa7e023c3dd2102a50d (diff)
Fix handling of multiple unix clients
Diffstat (limited to 'audio/unix.c')
-rw-r--r--audio/unix.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/audio/unix.c b/audio/unix.c
index 9bf1a9ca..19a140c0 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -203,6 +203,10 @@ static void a2dp_setup_complete(struct avdtp *session, struct device *dev,
goto failed;
}
+ client->disconnect = (notify_cb_t) a2dp_source_unlock;
+ client->suspend = (notify_cb_t) a2dp_source_suspend;
+ client->play = (notify_cb_t) a2dp_source_start_stream;
+
a2dp->stream = stream;
if (!avdtp_stream_get_transport(stream, &fd, &cfg->pkt_len, &caps)) {
@@ -322,9 +326,6 @@ proceed:
}
client->req_id = id;
- client->disconnect = (notify_cb_t) a2dp_source_unlock;
- client->suspend = (notify_cb_t) a2dp_source_suspend;
- client->play = (notify_cb_t) a2dp_source_start_stream;
break;
case TYPE_HEADSET: