blob: 7aa4afe88488f0b2d764c3a7dac19f6cb3e691cb [file] [log] [blame]
Mikhail Naganovdf5adfd2021-11-11 22:09:22 +00001/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Lorena Torres-Huertadb11b2d2022-08-19 02:58:59 +000016
Lorena Torres-Huerta0ba91e52022-10-05 21:56:42 +000017#define LOG_TAG "AHAL_Module"
18#include <android-base/logging.h>
Mikhail Naganovdf5adfd2021-11-11 22:09:22 +000019
20#include "core-impl/Config.h"
21
Lorena Torres-Huertadb11b2d2022-08-19 02:58:59 +000022using aidl::android::media::audio::common::AudioHalEngineConfig;
23
Lorena Torres-Huerta0ba91e52022-10-05 21:56:42 +000024namespace aidl::android::hardware::audio::core {
25ndk::ScopedAStatus Config::getSurroundSoundConfig(SurroundSoundConfig* _aidl_return) {
26 SurroundSoundConfig surroundSoundConfig;
27 // TODO: parse from XML; for now, use empty config as default
28 *_aidl_return = std::move(surroundSoundConfig);
29 LOG(DEBUG) << __func__ << ": returning " << _aidl_return->toString();
30 return ndk::ScopedAStatus::ok();
31}
Lorena Torres-Huertadb11b2d2022-08-19 02:58:59 +000032
33ndk::ScopedAStatus Config::getEngineConfig(AudioHalEngineConfig* _aidl_return) {
34 AudioHalEngineConfig engineConfig;
35 // TODO: parse from XML; for now, use empty config as default
36 *_aidl_return = std::move(engineConfig);
37 LOG(DEBUG) << __func__ << ": returning " << _aidl_return->toString();
38 return ndk::ScopedAStatus::ok();
39}
Lorena Torres-Huerta0ba91e52022-10-05 21:56:42 +000040} // namespace aidl::android::hardware::audio::core