diff options
author | Syed Ibrahim M <syedibra@broadcom.com> | 2012-11-15 12:07:06 +0530 |
---|---|---|
committer | The Android Automerger <android-build@android.com> | 2012-11-19 16:04:42 -0800 |
commit | 0d153181bbe9ce75555b437567796a9aef4ef0ae (patch) | |
tree | 79f177c89fc91c9cb80a75fb8db97a2b5dd8ec3f | |
parent | cdeccf6fdd8c2d494ea2867cb37a025bf8879baf (diff) | |
download | external_bluetooth_bluedroid-0d153181bbe9ce75555b437567796a9aef4ef0ae.zip external_bluetooth_bluedroid-0d153181bbe9ce75555b437567796a9aef4ef0ae.tar.gz external_bluetooth_bluedroid-0d153181bbe9ce75555b437567796a9aef4ef0ae.tar.bz2 |
Add HID gamepad/joystick as supported HID devices
When trying to pair a HID gamepad with bluedroid, the pairing fails
with the 'Type of device not supported' error. This patch adds
HID gamepads and joysticks to the list of supported HID devices.
bug 7538893
Change-Id: I435ae9f68b2115cfd7ce5033d0c3346f8d42825b
-rw-r--r-- | bta/hh/bta_hh_cfg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bta/hh/bta_hh_cfg.c b/bta/hh/bta_hh_cfg.c index 62a07ad..5b7335a 100644 --- a/bta/hh/bta_hh_cfg.c +++ b/bta/hh/bta_hh_cfg.c @@ -27,7 +27,7 @@ #include "bta_hh_api.h" /* max number of device types supported by BTA */ -#define BTA_HH_MAX_DEVT_SPT 7 +#define BTA_HH_MAX_DEVT_SPT 9 /* size of database for service discovery */ #ifndef BTA_HH_DISC_BUF_SIZE @@ -39,6 +39,8 @@ #define BTA_HH_APP_ID_KB 2 #define BTA_HH_APP_ID_RMC 3 #define BTA_HH_APP_ID_3DSG 4 +#define BTA_HH_APP_ID_JOY 5 +#define BTA_HH_APP_ID_GPAD 6 /* The type of devices supported by BTA HH and corresponding application ID */ @@ -50,6 +52,8 @@ tBTA_HH_SPT_TOD p_devt_list[BTA_HH_MAX_DEVT_SPT] = {BTA_HH_DEVT_RMC, BTA_HH_APP_ID_RMC}, {BTA_HH_DEVT_RMC | BTA_HH_DEVT_KBD, BTA_HH_APP_ID_RMC}, {BTA_HH_DEVT_MIC | BTA_HH_DEVT_DGT, BTA_HH_APP_ID_MI}, + {BTA_HH_DEVT_JOS, BTA_HH_APP_ID_JOY}, + {BTA_HH_DEVT_GPD, BTA_HH_APP_ID_GPAD}, {BTA_HH_DEVT_UNKNOWN, BTA_HH_APP_ID_3DSG} }; |