summaryrefslogtreecommitdiffstats
path: root/src/handsfree-audio.c
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2013-03-25 19:05:19 -0300
committerDenis Kenzior <denkenz@gmail.com>2013-03-26 23:23:58 -0500
commitcc5a86f1dbd6cd78efeaa859cfddad646d8b8065 (patch)
tree3cf998c406b18e5d957826176df1ae50bf83b911 /src/handsfree-audio.c
parentc3cd427ee8a3facc5e4fe4c53ba10cb8a1efb8b3 (diff)
downloadofono-cc5a86f1dbd6cd78efeaa859cfddad646d8b8065.tar.bz2
handsfree-audio: Add support for sending the SCO socket
Send the SCO socket to the agent associated with the card that just got connected.
Diffstat (limited to 'src/handsfree-audio.c')
-rw-r--r--src/handsfree-audio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index 795a68bd..4232074f 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -291,6 +291,8 @@ static gboolean sco_connect_cb(GIOChannel *io, GIOCondition cond,
sk = g_io_channel_unix_get_fd(io);
+ send_new_connection(card->path, sk);
+
close(sk);
reply = dbus_message_new_method_return(card->msg);