commit | 8f270269d00bbbe82c3f12d26131111ece165f82 | [log] [tgz] |
---|---|---|
author | Aniket Kumar Lata <alata@quicinc.com> | Wed May 08 15:56:56 2019 -0700 |
committer | Eric Laurent <elaurent@google.com> | Wed May 08 16:36:27 2019 -0700 |
tree | 686175dff8c4ace5438aabb93ce1297461caea0c | |
parent | 154055d2bce6311f03e5ac06e8ba417375b24817 [diff] |
hal: Modify A2DP output routing post releaseAudioPatch HAL routes A2DP stream to speaker on releaseAudioPatch from APM until the stream is put to standby from framework. APM may releaseAudioPatch for an output where A2DP is suspended and SCO is active leading to HAL switching all streams to speaker. Fix this behavior by routing streams to speaker only if both SCO and A2DP are not active. Bug: 126848701 Test: repro steps in bug Change-Id: Ic315b16480fe6d0c81c45716534a42b800e2d9da