summaryrefslogtreecommitdiff
path: root/android/sco-ipc-api.txt
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-05-12 11:57:00 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-05-13 14:16:51 +0300
commitfed8f328c62d5f8d3566f040de9c53c6ac9ba2e7 (patch)
treebb639ba7f056305076887498066f55595bdee9a5 /android/sco-ipc-api.txt
parent99020ec3f6946934819e7fd4674f4e618f36fb4a (diff)
downloadbluez-fed8f328c62d5f8d3566f040de9c53c6ac9ba2e7.tar.gz
android: Add SCO IPC API
SCO API will be used when communicating with SCO HAL.
Diffstat (limited to 'android/sco-ipc-api.txt')
-rw-r--r--android/sco-ipc-api.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/android/sco-ipc-api.txt b/android/sco-ipc-api.txt
new file mode 100644
index 000000000..05848d2e0
--- /dev/null
+++ b/android/sco-ipc-api.txt
@@ -0,0 +1,37 @@
+Bluetooth SCO Audio Plugin
+==========================
+
+The SCO Audio Plugin communicate through abstract socket name
+"\0bluez_sco_socket".
+
+ .----SCO----. .--Android--.
+ | Plugin | | Daemon |
+ | | Command | |
+ | | --------------------------> | |
+ | | | |
+ | | <-------------------------- | |
+ | | Response | |
+ | | | |
+ | | | |
+ | | | |
+ '-----------' '-----------'
+
+
+ SCO HAL Daemon
+ ----------------------------------------------------
+
+ call connect_sco() --> create SCO socket
+ return connect_sco() <-- return socket fd and mtu
+
+SCO Audio Service (ID 0)
+========================
+
+ Opcode 0x00 - Error response
+
+ Response parameters: Status (1 octet)
+
+ Opcode 0x01 - Connect SCO command
+
+ Command parameters: <none>
+ Response parameters: MTU (2 octets)
+ File descriptor (inline)