Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d4120148 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audiopolicy: Refactor HwModuleCollection

 -- make AudioPolicyManager::mHwModules to only store
    loaded modules; all modules stored in mHwModulesAll;
    this removes lots of checks for HwModule::mHandle;

 -- use "for range" loops when iterating over mHwModules;

 -- use HwModulesCollection::getModuleFromName for finding
    the remote submix module;

 -- log statements print HwModule's name instead of index.

Test: audio still works
Change-Id: I2d86caae23e87e25b6a367cb4042741f0b32e99c
parent 3a5608cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment