OSDN Git Service

audio policy: fix attached devices validation
authorEric Laurent <elaurent@google.com>
Tue, 16 Sep 2014 23:38:20 +0000 (16:38 -0700)
committerEric Laurent <elaurent@google.com>
Wed, 17 Sep 2014 00:03:03 +0000 (17:03 -0700)
commitd78f153a21868d870b14169a6928d991e4b82e73
tree6740ad0e8681294c3c1d5e01e6c74715769c8998
parent086c1e3f41a92aa0025a1da1db5dabbfdffaf129
audio policy: fix attached devices validation

Consider all supported devices in an io profile and
not only the first one when looking for a match with attached
devices.
Failing to do so would cause the device validation to fail
if supported devices are not declared in a specific order
in the io profile descriptor in audio_policy.conf

Bug: 17532764.
Change-Id: Id27c9192e21de7f075076e17eb8c48e7e42847f6
services/audiopolicy/AudioPolicyManager.cpp