summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-26 14:50:16 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-26 14:50:16 -0300
commit09d691ffa7e3d873c140aa05a4c2d6c888e1d769 (patch)
tree128d7d2c79625b587abc30c92f046dbe06b6e4a6 /audio/unix.c
parent4a7ef16ea61752ccb2ea7cd1db965b900417cfa0 (diff)
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.
Diffstat (limited to 'audio/unix.c')
-rw-r--r--audio/unix.c4
1 files changed, 2 insertions, 2 deletions
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;