OSDN Git Service

HID: Reduce poll time to 50 ms for polling from uhid driver
authorHemant Gupta <hemantg@codeaurora.org>
Thu, 10 Apr 2014 11:00:55 +0000 (16:30 +0530)
committerMatthew Xie <mattx@google.com>
Tue, 6 May 2014 08:14:23 +0000 (01:14 -0700)
commitcc7272fabcaa6dcc5f3adad25c8f9c43d7d94f30
tree8e82766485ee8c11127be3b824bd62bf9c8e877e
parent8029dc8f0332d1135aa93e8e5daa46e3eb7b2500
HID: Reduce poll time to 50 ms for polling from uhid driver

This patch reduces poll time for data received from uhid driver to 50 ms
from existing 500 ms. Without this change bta thread was getting blocked upto
max 500 ms when HID is disconnected, which caused delay in sending
of AVDTP Media packets during A2DP and HID concurrent test cases resulting
in audio break on BT headset during HID disconnection as closing of uhid
polling thread is done from BTA context.

Change-Id: I033e2d81e895831555bbfdff1f93fad5f2cc5e59
btif/co/bta_hh_co.c