From 3e34eab99bd769efc756cc8e3a452b00e48de387 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 10 Sep 2008 15:35:45 +0300 Subject: Add SCO server socket (needed for HFP) --- audio/headset.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'audio/headset.c') 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; -- cgit