From c3a264a57a6e61c22280b52dd01f2677600a04f2 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 25 Nov 2008 11:42:25 -0300 Subject: Fix headset_request_stream to check for stream locks. A stream should only be configured if there is no other application holding the lock. --- audio/headset.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'audio/headset.h') diff --git a/audio/headset.h b/audio/headset.h index c8d63b9b..18205c4d 100644 --- a/audio/headset.h +++ b/audio/headset.h @@ -53,7 +53,9 @@ void headset_update(struct audio_device *dev, uint16_t svc, const char *uuidstr); unsigned int headset_request_stream(struct audio_device *dev, - headset_stream_cb_t cb, void *user_data); + headset_stream_cb_t cb, + headset_lock_t lock, + void *user_data); gboolean headset_cancel_stream(struct audio_device *dev, unsigned int id); gboolean get_hfp_active(struct audio_device *dev); -- cgit