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

Commit e672361d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes from topic "engine_vts"

* changes:
  audiopolicy: managerdefinitions: add attribute for engine dynamic loading
  audiopolicy: engine: cleanup to enable VTS testing
parents 8d38c0af fabb79f4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -199,6 +199,7 @@ struct GlobalConfigTraits
    struct Attributes
    {
        static constexpr const char *speakerDrcEnabled = "speaker_drc_enabled";
        static constexpr const char *engineLibrarySuffix = "engine_library";
    };

    static status_t deserialize(const xmlNode *root, AudioPolicyConfig *config);
@@ -687,6 +688,10 @@ status_t GlobalConfigTraits::deserialize(const xmlNode *root, AudioPolicyConfig
                    convertTo<std::string, bool>(speakerDrcEnabled, isSpeakerDrcEnabled)) {
                config->setSpeakerDrcEnabled(isSpeakerDrcEnabled);
            }
            std::string engineLibrarySuffix = getXmlAttribute(cur, Attributes::engineLibrarySuffix);
            if (!engineLibrarySuffix.empty()) {
                config->setEngineLibraryNameSuffix(engineLibrarySuffix);
            }
            return NO_ERROR;
        }
    }
+4 −0
Original line number Diff line number Diff line
@@ -91,6 +91,10 @@ filegroup {
    name: "audio_policy_configuration_generic",
    srcs: ["audio_policy_configuration_generic.xml"],
}
filegroup {
    name: "audio_policy_configuration_generic_configurable",
    srcs: ["audio_policy_configuration_generic_configurable.xml"],
}
filegroup {
    name: "usb_audio_policy_configuration",
    srcs: ["usb_audio_policy_configuration.xml"],
+50 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright (C) 2020 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
    <!-- version section contains a “version” tag in the form “major.minor” e.g version=”1.0” -->

    <!-- Global configuration Decalaration -->
    <globalConfiguration speaker_drc_enabled="false" engine_library="configurable"/>

    <modules>
        <!-- Primary Audio HAL -->
        <xi:include href="primary_audio_policy_configuration.xml"/>

        <!-- Remote Submix Audio HAL -->
        <xi:include href="r_submix_audio_policy_configuration.xml"/>

    </modules>
    <!-- End of Modules section -->

    <!-- Volume section:
        IMPORTANT NOTE: Volume tables have been moved to engine configuration.
                        Keep it here for legacy.
                        Engine will fallback on these files if none are provided by engine.
     -->

    <xi:include href="audio_policy_volumes.xml"/>
    <xi:include href="default_volume_tables.xml"/>

    <!-- End of Volume section -->

    <!-- Surround Sound configuration -->

    <xi:include href="surround_sound_configuration_5_0.xml"/>

    <!-- End of Surround Sound configuration -->

</audioPolicyConfiguration>
+3 −6
Original line number Diff line number Diff line
cc_library_static {
cc_library {
    name: "libaudiopolicyengine_config",
    export_include_dirs: ["include"],
    include_dirs: [
@@ -14,17 +14,14 @@ cc_library_static {
    ],
    shared_libs: [
        "libmedia_helper",
        "libandroidicu",
        "libxml2",
        "libutils",
        "liblog",
        "libcutils",
    ],
    static_libs: [
        "libaudiopolicycomponents",
    ],
    header_libs: [
        "libaudio_system_headers",
        "libaudiopolicycommon",
        "libmedia_headers",
        "libaudioclient_headers",
    ],
}
+0 −1
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@
//#define LOG_NDEBUG 0

#include "EngineConfig.h"
#include <policy.h>
#include <cutils/properties.h>
#include <media/TypeConverter.h>
#include <media/convert.h>
Loading