mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 02:42:35 +00:00
audio: Bring default HAL configuration closer to cuttlefish
This is to simplify switching of cuttlefish to the AIDL implementation. Split out 'r_submix' module. Add all IModule instance names to the compatibility matrix. Bug: 205884982 Test: atest VtsHalAudioCoreTargetTest Change-Id: I424db14257281671eea87aa743deb778ca75f388
This commit is contained in:
@@ -238,7 +238,14 @@ std::set<int32_t> Module::portIdsFromPortConfigIds(C portConfigIds) {
|
||||
|
||||
internal::Configuration& Module::getConfig() {
|
||||
if (!mConfig) {
|
||||
mConfig.reset(new internal::Configuration(internal::getNullPrimaryConfiguration()));
|
||||
switch (mType) {
|
||||
case Type::DEFAULT:
|
||||
mConfig = std::move(internal::getPrimaryConfiguration());
|
||||
break;
|
||||
case Type::R_SUBMIX:
|
||||
mConfig = std::move(internal::getRSubmixConfiguration());
|
||||
break;
|
||||
}
|
||||
}
|
||||
return *mConfig;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user