From 09d691ffa7e3d873c140aa05a4c2d6c888e1d769 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 26 Nov 2008 14:50:16 -0300 Subject: Fix proble with concurrent clients connecting audio socket. Concurrent connections is needed in order to support clients holding different access locks of the headset, eg. arecord | aplay. --- audio/unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio/unix.c') diff --git a/audio/unix.c b/audio/unix.c index eeb4a5d6..921e15ef 100644 --- a/audio/unix.c +++ b/audio/unix.c @@ -650,7 +650,7 @@ static void start_config(struct audio_device *dev, struct unix_client *client) break; } - id = headset_suspend_stream(dev, headset_setup_complete, + id = headset_config_stream(dev, headset_setup_complete, hs->lock, client); client->cancel = headset_cancel_stream; break; @@ -763,7 +763,7 @@ static void start_suspend(struct audio_device *dev, struct unix_client *client) hs = &client->d.hs; id = headset_suspend_stream(dev, headset_suspend_complete, - ~hs->lock, client); + hs->lock, client); client->cancel = headset_cancel_stream; break; -- cgit