bluez/android/sco-ipc-api.txt
Andrei Emeltchenko fed8f328c6 android: Add SCO IPC API
SCO API will be used when communicating with SCO HAL.
2014-05-13 14:16:51 +03:00

38 lines
1.2 KiB
Plaintext

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)