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 21:25:54 +0000 (14:25 -0700)
commit354a900914a6420d49992dc4f5442b0c857c1e0c
treebf7e23f0933dd71008c4eb9e851b06e28b3a2853
parent86b82459027b5807b454288f6f27b36277ffe890
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
Merged-In: Iec5086dba6f9003c21bcb41eddb3bc83ac7dddd1
(cherry picked from commit 1b548bb34a0bfc300b8aa03c271148141673922f)
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