| commit | 560095bfbfb43586c416dbabc33077369293a596 | [log] [tgz] |
|---|---|---|
| author | Mikhail Naganov <mnaganov@google.com> | Thu Mar 05 16:28:57 2020 -0800 |
| committer | Mikhail Naganov <mnaganov@google.com> | Wed Mar 11 09:37:48 2020 -0700 |
| tree | a797eec3eed5009c238b08168ca19444c86942e0 | |
| parent | 40a5d55ea454d8e59b7b65e51be9edd30dd7da92 [diff] |
Allow for late audio module discovery in APM
Extract code that loads hardware modules and fills out
mAvailable{Input|Output}Devices into a reusable function.
It is used both during APM initialization and on
receiving a notification that a new HAL service has
been discovered.
Bug: 149854039
Bug: 151187299
Test: atest audiopolicy_tests
Change-Id: Ifb7f0b61b06a0609802e63dccb26f3472328ef48
Merged-In: Ifb7f0b61b06a0609802e63dccb26f3472328ef48