summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-13 19:14:26 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-13 19:14:26 +0000
commit5b5cfaadb312600c58362617080e29fbf036712c (patch)
tree0475dab4c005cabe4e2d1301bb9c82ee756f32db /audio/a2dp.c
parente375ab2250d99fcb1d188541001fc4fb8c5aa4c7 (diff)
Implement support for incoming Start command
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r--audio/a2dp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c
index fd355302..7574dbbb 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -188,7 +188,11 @@ static gboolean start_ind(struct avdtp *session, struct avdtp_local_sep *sep,
debug("SBC Sink: Start_Ind");
else
debug("SBC Source: Start_Ind");
- return TRUE;
+
+ /* Refuse to go into streaming state since this action should only be
+ * initiated by alsa */
+ *err = AVDTP_NOT_SUPPORTED_COMMAND;
+ return FALSE;
}
static void start_cfm(struct avdtp *session, struct avdtp_local_sep *sep,