commit | f030fe8ae0683949a9f251673b57bf9f48a309fa | [log] [tgz] |
---|---|---|
author | Eric Laurent <[email protected]> | Wed May 20 13:50:49 2020 -0700 |
committer | Eric Laurent <[email protected]> | Wed May 20 13:50:49 2020 -0700 |
tree | e149fb9a335549bb75211c7acdfd99122ddb184a | |
parent | 680f560798af7c170e29cd30b37c585117cdc26e [diff] |
audio hal: fix audio leak when disconnecting A2DP sink When A2DP sink is disconnected, the A2DP offload path may be disabled before the audio framework pauses the output stream, in which case the HAL forces the audio route to speaker. When this happens, the front end must be muted to avoid audio leaking over speaker path potentially at full volume if A2DP absolute volume is enabled. Bug: 156044862 Test: repro steps in the bug. Change-Id: I90de8729ac862ca794dbdcf85fc1fa9dfabbf23b