summaryrefslogtreecommitdiff
path: root/android/sco-ipc-api.txt
blob: 27d5ef2160c1403d55de10ebb2df68429f422aa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 get_fd()                    --> Get SCO socket fd
	return get_fd()                  <-- Return SCO socket fd and mtu

SCO Audio Service (ID 0)
========================

	Opcode 0x00 - Error response

		Response parameters: Status (1 octet)

	Opcode 0x01 - Get SCO fd command

		Command parameters: Remote address (6 octets)
		Response parameters: MTU (2 octets)
				     File descriptor (inline)