blob: dae3ab77376109dd5dc35f4aa54716954bfd0d8d [file] [log] [blame]
Shunkai Yao45905172022-08-24 18:14:02 +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 */
16
17#define LOG_TAG "AHAL_Equalizer"
18#include <android-base/logging.h>
19
20#include "Equalizer.h"
21
22namespace aidl::android::hardware::audio::effect {
23
24Equalizer::Equalizer() {
25 // Implementation UUID
26 mDesc.common.id.uuid = {static_cast<int32_t>(0xce772f20),
27 0x847d,
28 0x11df,
29 0xbb17,
30 {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}};
31}
32
33ndk::ScopedAStatus Equalizer::open() {
34 LOG(DEBUG) << __func__;
35 return ndk::ScopedAStatus::ok();
36}
37
38ndk::ScopedAStatus Equalizer::close() {
39 LOG(DEBUG) << __func__;
40 return ndk::ScopedAStatus::ok();
41}
42
43ndk::ScopedAStatus Equalizer::getDescriptor(Descriptor* _aidl_return) {
44 LOG(DEBUG) << __func__ << "descriptor " << mDesc.toString();
45 *_aidl_return = mDesc;
46 return ndk::ScopedAStatus::ok();
47}
48
49} // namespace aidl::android::hardware::audio::effect