commit | f8511f486104e9995a58249504954769f355fffa | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Tue Jan 29 19:12:49 2019 -0800 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Jan 30 04:45:38 2019 +0000 |
tree | 0dfe2cc938a1f74c11ac8bd0c02410ec0b1f59ee | |
parent | 86e9ba5c9b731d175b301f37a59f1553b6399ac7 [diff] |
audio policy: fix regression in USB audio Fix regression in audio device selection introduced by commit d84e8f7f Bug: 123500997 Test: play music over USB and BT A2DP Change-Id: I25edea0103b5279eb2c49a5c944a72682ad6b288 (cherry picked from commit 04d65587867f39ace15cf4a2c20516208a31ee15)
diff --git a/services/audiopolicy/common/managerdefinitions/src/DeviceDescriptor.cpp b/services/audiopolicy/common/managerdefinitions/src/DeviceDescriptor.cpp index dc5b238..8ae937d 100644 --- a/services/audiopolicy/common/managerdefinitions/src/DeviceDescriptor.cpp +++ b/services/audiopolicy/common/managerdefinitions/src/DeviceDescriptor.cpp
@@ -105,10 +105,6 @@ bool DeviceDescriptor::supportsFormat(audio_format_t format) { - if (mEncodedFormats.isEmpty()) { - return true; - } - for (const auto& devFormat : mEncodedFormats) { if (devFormat == format) { return true;