diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-02 19:26:23 -0800 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-02 19:32:14 -0800 |
commit | 38ca09be34dbb514fa1194b9a164d1b63a74069b (patch) | |
tree | 8a5e533c31a9e1d286801adafd09aefb3cf6a6c1 /audio/sink.h | |
parent | 8b3e4cf9d9eaba3cfc5ec5361d136ebb84ab749f (diff) |
Set up a stream for incoming connections if the sink doesn't do it
Some headsets when acting as initiators of an AVDTP connection create
the AVDTP signaling channel but don't do anything else over it (i.e.
they expect us to set up a stream when needed). This patch makes
bluetoothd do the same as AudioSink.Connect() if no AVDTP commands have
been received from the sink within one second after it has created the
AVDTP signaling channel to us.
Setting up a stream is also important because the AudioSink Connected
property is bound to the existence of a configured stream (which makes
sense since an AVDTP connection as such tells us nothing about what
sinks and sources there are or even if audio or video will be used).
Diffstat (limited to 'audio/sink.h')
-rw-r--r-- | audio/sink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/sink.h b/audio/sink.h index a665e560..8bd6bef1 100644 --- a/audio/sink.h +++ b/audio/sink.h @@ -30,3 +30,4 @@ gboolean sink_is_active(struct audio_device *dev); avdtp_state_t sink_get_state(struct audio_device *dev); gboolean sink_new_stream(struct audio_device *dev, struct avdtp *session, struct avdtp_stream *stream); +gboolean sink_setup_stream(struct sink *sink, struct avdtp *session); |