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

Commit 067d1067 authored by Mikhail Naganov's avatar Mikhail Naganov Committed by Automerger Merge Worker
Browse files

audio: Use hardcoded r_submix configuration with XML am: fc35ca3d

parents 6788dcd1 fc35ca3d
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -184,9 +184,15 @@ void AudioPolicyConfigXmlConverter::init() {
            // 'primary' in the XML schema used by HIDL is equivalent to 'default' module.
            const std::string name =
                    xsdcModule.getName() != "primary" ? xsdcModule.getName() : "default";
            if (name != "r_submix") {
                mModuleConfigurations->emplace_back(
                        name, VALUE_OR_FATAL(convertModuleConfigToAidl(xsdcModule)));
            } else {
                // See the note on the 'getRSubmixConfiguration' function.
                mModuleConfigurations->emplace_back(name, nullptr);
            }
        }
    }
}

}  // namespace aidl::android::hardware::audio::core::internal