commit | 3754b64b391a04a09ea4679f6f214b88eaf3eb14 | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Wed Apr 17 18:31:04 2024 +0000 |
committer | Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Wed Apr 17 18:31:04 2024 +0000 |
tree | 1b115acb21124c0ad75de4f370c234258afee1f6 | |
parent | c1654c6dd4dc3339c4e8b37aef00d037deb62ef4 [diff] |
audio policy: Fix handling of external device connection failure The cleanup code in 'APM::setDeviceConnectionStateInt' was detaching the external device prior to sending an update to HALs. As a result, HALs were receiving an empty device address. Bug: 333196025 Test: atest audiopolicy_tests (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f88c2f334abc5a40352c4141347e7a8eb62794d7) Merged-In: I76e8303f81d1d27484a62c073128600fb7718bab Change-Id: I76e8303f81d1d27484a62c073128600fb7718bab