OSDN Git Service

Add separate sniff mode settings for gamepads
authorKim Low <klow@gaikai.com>
Wed, 20 Dec 2017 23:11:08 +0000 (15:11 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 24 May 2018 21:30:40 +0000 (21:30 +0000)
commit18985be5fdc5b407f3ac4ace39af2623fd97f126
tree9cc410a2b5e7a51e4711cdaa01bb222124b70911
parent89f92dbdc43f28f5044ac7674e18bc76937e3db3
Add separate sniff mode settings for gamepads

For gamepads, the sniff intervals need to be much shorter. The
min is set to 14 slots (8.75ms) and max is set to 18 slots
(11.25ms).

Test: Load >=4.10 hid-sony driver, connect a DualShock4, check its
      responsiveness.
      Wait for 5 minutes, wake it up (if it went into PARK mode)
      and check that it's still as responsive.
      Furthermore, use a Bluetooth sniffer to confirm the sniff
      interval.
Bug: 38511270
Change-Id: I27e2e0c8e88ab51800c4976e0971c92a3793f8d2
bta/dm/bta_dm_cfg.cc
bta/include/bta_api.h
doc/power_management.md