OSDN Git Service

Bluetooth: Fix to decrease power during OPP TX/RX
authorNitin Shivpure <nshivpur@codeaurora.org>
Wed, 16 Dec 2015 11:17:42 +0000 (16:47 +0530)
committerLinux Build Service Account <lnxbuild@localhost>
Wed, 24 Aug 2016 14:09:39 +0000 (08:09 -0600)
commit7761585830e67655eccdbf8905c1f6c2bb74d687
tree6658d47184d1e6ef6f11a8ae4a90b326cbfc3cd4
parent7abf78e017a599cfafa1052800c608334e6c7a33
Bluetooth: Fix to decrease power during OPP TX/RX

Due to alarm timer implementation, bta_sys_idle OR bta_sys_busy call
was the overhead(eg. 7ms) on every OPP packet(TX/RX), which was causing
high power. Below optimization have been done in JV to decrease
power during OPP TX/RX
- If particular JV acl link is in sniff, only then use bta_sys_busy to
  trigger unsniff request.
- Start intermediate idle timer(1s) before starting actual idle sniff
  timer(bta_sys_idle).

CRs-fixed: 1028625
Change-Id: Ied1173776f9bf2dc89b8e84e68d6217932a01607
bta/dm/bta_dm_cfg.c
bta/dm/bta_dm_int.h
bta/include/bta_jv_api.h
bta/jv/bta_jv_act.c
bta/jv/bta_jv_int.h