summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
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: