Upgrade bluez5_37 :Merge the code from private
[platform/upstream/bluez.git] / android / sco-ipc-api.txt
1 Bluetooth SCO Audio Plugin
2 ==========================
3
4 The SCO Audio Plugin communicate through abstract socket name
5 "\0bluez_sco_socket".
6
7         .----SCO----.                             .--Android--.
8         |   Plugin  |                             |   Daemon  |
9         |           |          Command            |           |
10         |           | --------------------------> |           |
11         |           |                             |           |
12         |           | <-------------------------- |           |
13         |           |          Response           |           |
14         |           |                             |           |
15         |           |                             |           |
16         |           |                             |           |
17         '-----------'                             '-----------'
18
19
20         SCO HAL                               Daemon
21         ----------------------------------------------------
22
23         call get_fd()                    --> Get SCO socket fd
24         return get_fd()                  <-- Return SCO socket fd and mtu
25
26 SCO Audio Service (ID 0)
27 ========================
28
29         Opcode 0x00 - Error response
30
31                 Response parameters: Status (1 octet)
32
33         Opcode 0x01 - Get SCO fd command
34
35                 Command parameters: Remote address (6 octets)
36                 Response parameters: MTU (2 octets)
37                                      File descriptor (inline)