Luiz Augusto von Dentz
cd8bbd29f4
android/hid: Fix passing wrong adapter address to bt_io_listen
2013-11-05 15:21:27 +02:00
Ravi kumar Veeramally
c5ca292eb6
android/hid: Retrieve BOOT_DEVICE attribute from SDP and cache it
...
It will be usefull to handle when application level requests
get or set protocol from hid device.
2013-11-05 10:19:15 +02:00
Ravi kumar Veeramally
34492997bf
android/hid: Rename function name set_state to notify_state
...
Renaming notification preparation function name from bt_hid_set_state
to bt_hid_notify_state. Rest of the funtions name will have proper
notify* names.
2013-11-05 10:18:51 +02:00
Luiz Augusto von Dentz
d661ba725c
android: Add the missing HAVE_CONFIG_H check daemon files
2013-11-04 12:10:31 +02:00
Luiz Augusto von Dentz
f18bb68ba5
android/hid: Use BT_IO_OPT_SOURCE_BDADDR whenever possible
2013-11-04 12:10:29 +02:00
Luiz Augusto von Dentz
da48ebbe18
android/hid: Log not implemented HAL functions
...
This makes it easier to spot which functions the HAL is calling.
2013-11-01 16:40:38 +02:00
Luiz Augusto von Dentz
5e1e3a097d
android/hid: Add handling of HAL_EV_HID_INFO
2013-11-01 15:23:26 +02:00
Luiz Augusto von Dentz
e01894ce63
android/hid: Fix passing vendor id as version to uHID
2013-11-01 15:23:26 +02:00
Luiz Augusto von Dentz
65ec172c2b
android/hid: Rename hdev vars to dev
2013-11-01 15:23:26 +02:00
Ravi kumar Veeramally
46a977c7a0
android/hid: Initial implementation for uHID
...
This patch reads data on interrupt channel and feeds into uHID.
Kernel will take care rest of the things and connects bt mouse
and keyboard:
[168988.557647] input: bluez-input-device as /devices/virtual/misc/uhid/input54
2013-11-01 11:13:10 +02:00
Ravi kumar Veeramally
8e423452a2
android/hid: Fetch record before attempting to connect
...
This patch fetch HID record and store the information needed by uHID.
2013-11-01 11:13:07 +02:00
Andrei Emeltchenko
2b81efe25b
android/hid: Shutdown HID L2CAP sockets on unregister
...
Fixes address already in use issue if we reenable HID.
...
bluetoothd[2894]: Failed to listen on ctrl channel:
l2cap_bind: Address already in use (98)
...
2013-11-01 09:45:47 +02:00
Andrei Emeltchenko
4ae7735196
android/hid: Add error message to error print
2013-10-31 16:58:09 +02:00
Luiz Augusto von Dentz
26ba19064d
android/hid: Add handling of HAL_EV_HID_CONN_STATE
...
This patches generate proper events when the connection state changes:
>hidhost connect
BlueZ D: android/hal-hidhost.c:hh_connect()
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_CONNECTING
if_hh->connect: BT_STATUS_SUCCESS
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_CONNECTED
>hidhost disconnect
BlueZ D: android/hal-hidhost.c:hh_disconnect()
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_DISCONNECTING
if_hh->disconnect: BT_STATUS_SUCCESS
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_DISCONNECTED
2013-10-31 15:00:14 +02:00
Luiz Augusto von Dentz
043fd76a2b
android/hid: Add handling of incoming connections
2013-10-31 14:59:30 +02:00
Luiz Augusto von Dentz
d9ea2226c0
android/hid: Fix not cleanup properly after disconnect
...
If the device is disconnected it should be removed from the list of
connected devices and free its data.
2013-10-30 16:42:19 +02:00
Ravi kumar Veeramally
c9902d2b50
android: Add initial HID disconnect implementation.
...
Implemented basic HID disconnect method. Host disconnects
with bt device at L2CAP level.
2013-10-29 13:14:05 +02:00
Ravi kumar Veeramally
508e048e66
android: Add initial HID connect implementation
...
Implemented basic HID connect method. Host connects to
bt device at L2CAP level.
2013-10-29 13:13:01 +02:00
Luiz Augusto von Dentz
d52939fde9
android: Rename ipc_send_error to ipc_send_rsp
2013-10-25 15:22:24 +03:00
Luiz Augusto von Dentz
1610f70cd6
android: Rename ERROR enum and command to STATUS
...
This is more consistent with HAL interface which does name the enum as
bt_status_t and does use BT_STATUS prefix.
2013-10-25 15:13:48 +03:00
Luiz Augusto von Dentz
55a25cb83c
android/hal-msg: Reduce length of defines and struct names
...
The current defines and struct names are way too big and sometimes
incosistent.
2013-10-24 10:46:24 +03:00
Szymon Janc
46467fd5d1
android: Add support for registering and unregistering hid service
2013-10-23 14:26:40 +03:00
Johan Hedberg
de10a3d060
android/hid: Fix service type in error response
2013-10-23 13:22:39 +03:00
Johan Hedberg
ef2d3dd3d2
android: Add stubs for daemon-side HID support
2013-10-23 10:14:58 +03:00