Marcin Kraglak
5bd6eae217
android/handsfree: Fix possible g_io_channel_shutdown() on NULL channel
...
Return false if listen failed.
2014-03-08 19:56:48 +01:00
Szymon Janc
a524960c2e
android/handsfree: Split AT+VGS and AT+VGM parsing function
2014-03-08 19:37:46 +01:00
Szymon Janc
73ddd670ce
android/handsfree: Fix bogus goto in AT+BIA parsing function
...
Command was not parsed at all.
2014-03-06 20:14:36 +01:00
Szymon Janc
fa6ab47596
android/handsfree: Fix IPC response code for COPS response command
2014-03-06 12:24:47 +01:00
Szymon Janc
3d2e92ff59
android/handsfree: Support volume control in HSP
2014-03-05 17:37:48 +01:00
Szymon Janc
2a7689be24
android/handsfree: Add support for volume synchronization
2014-03-05 17:13:07 +01:00
Szymon Janc
e4772b21b1
android/handsfree: Add support for AT+COPS command
2014-03-05 17:13:07 +01:00
Szymon Janc
6a1a80fe53
android/handsfree: Add support for handling device status notification
...
This allows to send unsolicited CIEV codes with service, roam, signal
and battchg indicators values.
2014-03-05 17:13:07 +01:00
Szymon Janc
0a1ec91fec
android/handsfree: Make connection state constants name shorter
2014-03-05 17:13:07 +01:00
Szymon Janc
96d94b5cfb
android/handsfree: Add support for AT+BIA command
2014-03-05 17:13:07 +01:00
Szymon Janc
ea0a5140df
android/handsfree: Distinguish between HSP and HFP connection
2014-03-05 17:13:07 +01:00
Szymon Janc
1bd727b477
android/handsfree: Add support for AT+CMER command
...
When this command is received SLC is connected.
2014-03-05 17:13:07 +01:00
Szymon Janc
b5b655fca2
android/handsfree: Add support for AT+CIND command
2014-03-05 17:13:06 +01:00
Szymon Janc
1882bfbe35
android/handsfree: Add support for AT+BRSF command
2014-03-05 17:13:06 +01:00
Szymon Janc
c088a0f5c6
android/handsfree: Add support for disabling HSP or HFP AGs
...
This allows to tune what profiles are supported by handsfree HAL.
2014-03-04 10:18:27 +01:00
Szymon Janc
a6b131fb47
android/handsfree: Allow to connect to HSP or HFP handsfree unit
...
This allows to connect to HSP (it HFP is not enabled) or fallback to
HSP if HFP is not supported by remote device.
2014-03-04 10:18:27 +01:00
Szymon Janc
c0d112b1c6
android/handsfree: Add support for HSP AG
2014-03-04 10:18:27 +01:00
Szymon Janc
09c05aae19
android/handsfree: Factor out HFP AG enable code
...
This is in preparation for support to not enable HFP AG when
initializing HAL.
2014-03-04 10:18:27 +01:00
Szymon Janc
14fc3c5403
android: Pass mode parameter to registered services
2014-03-04 10:18:27 +01:00
Szymon Janc
7d95d027b1
android: Create comon header for IPC
...
This header contains IPC specific structures and code not related to
BT and audio HAL protocols. This allows to fully decouple IPC from
HAL messages.
This is first step to make HAL part of IPC unit-testable and reusable
between BT HAL and audio HAL.
2014-02-28 15:22:45 +01:00
Szymon Janc
dd1e44fce1
android: Refactor IPC init
...
This allows to pass socket path and max service ID while initializaing
IPC. This is first step to allow use it both for BT and Audio HALs.
2014-02-28 15:22:45 +01:00
Szymon Janc
34f32c03dd
android/handsfree: Use HFP code for connection handling
...
HFP code is now able to handle disconnection on its own so just use
this instead of using own watches.
2014-02-24 10:49:38 +01:00
Anderson Lizardo
9b00e93b11
android: Use 16-bit UUID for SDP search
...
These UUIDs are assigned by BT-SIG and therefore there is no need to
use full 128-bit UUIDs. This also avoids unnecessary conversion from
string representation.
2014-02-12 11:26:56 +02:00
Marcel Holtmann
cde69653e0
android: Update copyright and license details
2014-02-11 10:42:56 -08:00
Andrei Emeltchenko
ed713a8319
android/handsfree: Fix memory leak
...
Free classes if sdp_get_access_protos fails.
2014-02-05 14:44:20 +01:00
Szymon Janc
5ca0c401ef
android/handsfree: Fix address printed in debug
2014-02-05 11:15:33 +01:00
Szymon Janc
f52cd974a3
android/handsfree: Use NULL instead of zero for pointers
2014-02-05 10:03:30 +01:00
Szymon Janc
077a899e87
android/handsfree: Add disconnect command handling
2014-02-05 09:53:54 +01:00
Szymon Janc
9ae2eda45d
android/handsfree: Add connect command handling
...
This allows to query SDP for RFCOMM channel and connect.
2014-02-05 09:53:54 +01:00
Szymon Janc
d404ab9874
android/handsfree: Add initial code for AT commands processing
...
Currently always reply with error and disconnect connection.
2014-02-05 09:53:54 +01:00
Szymon Janc
d08d1dbb2a
android/handsfree: Add support for RFCOMM connection handling
...
This adds incoming connection handling and initial connection state
tracking. Only one device is allowed to be connected at the same time.
2014-02-05 09:53:54 +01:00
Szymon Janc
82d4ce30ce
android/handsfree: Add SDP record for AG
...
Service Name: Hands-Free Audio GatewayService RecHandle: 0x10001
Service Class ID List:
"Handsfree Audio Gateway" (0x111f)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 13
Profile Descriptor List:
"Handsfree" (0x111e)
Version: 0x0106
2014-02-05 09:53:53 +01:00
Szymon Janc
74241d6755
android/handsfree: Add stubs for commands handlers
...
Add empty handlers for all IPC commands.
2014-02-05 09:53:53 +01:00
Szymon Janc
db17fbe467
android/handsfree: Add initial files
...
This adds initial HAL and daemon code for Handsfree profile.
2014-02-05 09:53:53 +01:00