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)
committerZhihai Xu <zhihaixu@google.com>
Mon, 21 Apr 2014 18:48:22 +0000 (18:48 +0000)
commit7a25994c7b99c02a8d9e3bd258767c1bdeb84f50
tree2a583e12cbe291ec53b7ad2cf6d2b68483192537
parent4c5f9ef5fa88891f073b38d5e15f2705ed5c235e
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