summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-09-10 15:35:45 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-09-10 15:35:45 +0300
commit3e34eab99bd769efc756cc8e3a452b00e48de387 (patch)
tree8109d887b61e36dafa7063baed307606b1bddb71 /audio/headset.c
parente93757f4c03094145b057c1557825d7652e801ef (diff)
Add SCO server socket (needed for HFP)
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 87d0ee7b..4683c356 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1877,6 +1877,18 @@ int headset_connect_rfcomm(struct audio_device *dev, GIOChannel *io)
return hs->tmp_rfcomm ? 0 : -EINVAL;
}
+int headset_connect_sco(struct audio_device *dev, GIOChannel *io)
+{
+ struct headset *hs = dev->headset;
+
+ if (hs->sco)
+ return -EISCONN;
+
+ hs->sco = io;
+
+ return 0;
+}
+
int headset_close_rfcomm(struct audio_device *dev)
{
struct headset *hs = dev->headset;