OSDN Git Service

Enable HCI Sniff mode and disable subrating for A2DP
authorGuang Xie <gregxie@google.com>
Thu, 15 Feb 2018 20:42:15 +0000 (12:42 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Fri, 27 Apr 2018 19:25:18 +0000 (12:25 -0700)
commit1b548bb34a0bfc300b8aa03c271148141673922f
tree6cfb6a4ba0c35d3de0d4620e982b5d60630efb27
parenta634f4e30a28d38d5363e01a7d7b301c281f9df4
Enable HCI Sniff mode and disable subrating for A2DP

Enabling the HCI Sniff mode could help headsets to save power.

Note that subrating is disabled implicitly by NOT sending the
"Sent Sniff Subrating" HCI command to the BT controller,
and effectively using the default Sniff Subrating parameters.
The Headset shouldn't go into Subrating Mode to prevent
potential stuttering if the Headset chooses to use subrating
with the wrong parameters.

NOTE: This should affect only Pixel Buds.

Also:
 - Added some extra log messages
 - Minor cleanup (argument/variable renaming)

Bug: 74344711
Bug: 74361002
Test: Manual - audio streaming; examine btsnoop logs
Change-Id: Iec5086dba6f9003c21bcb41eddb3bc83ac7dddd1
bta/av/bta_av_aact.cc
bta/av/bta_av_main.cc
bta/dm/bta_dm_cfg.cc
bta/sys/bta_sys.h
bta/sys/bta_sys_conn.cc
internal_include/bt_trace.h