commit | 2157f5bc0c54a77318e75076365eff739e07056f | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Wed Apr 25 18:33:02 2018 -0700 |
committer | Eric Laurent <elaurent@google.com> | Wed Apr 25 18:33:02 2018 -0700 |
tree | 5e7ba0e1b401517aeaaebb68a8c6d2f7eab9a6e8 | |
parent | 64da22285776f07a775afd45f9fc36cea1aa05e3 [diff] |
audiopolicy: fix preferred device selection Make sure preferred device selection is taken into account in getOutputForAttr() even if called twice on the same session: Force changed flag when adding a SessionRoute even if the same device is specified. Also renamed SessionRoute isActive() to isActiveOrChanged() and hasRouteChanged() to getAndClearRouteChanged() for clarity. Bug: 69680975 Test: manual Change-Id: I3f3a659568c4dfc825a788753b0302136fd89871