Commit: 054bfbcf4acb478ff936b75b7ddb7b2329721349
Parent: 98af476502b6be91bfe4034801abcdfe8e2754ff
Author: Petri Gynther <pgynther@google.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-05-08 23:08:31
Tree: 648b151f317e25ec3c044a32900d9aac311dbe69

input: Add userspace HID support Enable HID protocol handling in userspace when UserspaceHID=true in input.conf. Benefits of userspace HID: 1. Persistent HID/input pipeline For a Bluetooth HID device, the corresponding kernel HID/input devices are created only once when the Bluetooth HID device is used the first time. The HID/input pipeline is not destroyed and recreated every time when the Bluetooth HID device disconnects and reconnects. 2. HID vs HoG parity Enables HID and HoG devices to operate the same way in BlueZ stack, using uHID kernel module (/dev/uhid) to pass HID report data between bluetoothd and kernel HID subsystem. 3. Debugging It is easier to debug HID protocol in userspace than in HIDP kernel module.

Diffstat

M Makefile.plugins | 3 ++-
M profiles/input/device.c | 674 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - -
M profiles/input/device.h | 1 +
A profiles/input/hidp_defs.h | 79 ++++++++++++++++++++++++++++++++++++++++
M profiles/input/input.conf | 4 ++++
M profiles/input/manager.c | 10 ++++++++++

6 files changed, 754 insertions(+), 17 deletions(-)

View Full Diff | Patch