commit | 4dc6d002af4915c19e54dcb0e524a5c6dfb43a44 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Thu Feb 13 17:47:56 2020 -0800 |
committer | Eric Laurent <elaurent@google.com> | Thu Feb 13 18:36:28 2020 -0800 |
tree | 4c7680da75a59f4158b998db81eb4fd62bee9062 | |
parent | a199662c6a891c009329b619782f2475dff60822 [diff] |
audio policy: fix a2dp output detection The logic in IOProfile::devicesSupportEncodedFormats() was only checking if the first device in the list of supported devices was supporting currently selected A2DP encoding format. But if more than one devices match the queried types, we need to check all devices in case one of them supports the selected encoding format. Bug: 147789166 Test: repro steps in the bug. Change-Id: I704c5c6278eed524f15e7b73cec68a24f04d3a8c