summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'audio/core/2.0/default')
-rw-r--r--audio/core/2.0/default/Device.cpp2
-rw-r--r--audio/core/2.0/default/ParametersUtil.cpp1
-rw-r--r--audio/core/2.0/default/PrimaryDevice.cpp2
-rw-r--r--audio/core/2.0/default/Stream.cpp1
-rw-r--r--audio/core/2.0/default/StreamIn.cpp2
-rw-r--r--audio/core/2.0/default/StreamOut.cpp2
-rw-r--r--audio/core/2.0/default/include/core/2.0/default/Util.h26
7 files changed, 32 insertions, 4 deletions
diff --git a/audio/core/2.0/default/Device.cpp b/audio/core/2.0/default/Device.cpp
index 221ea5c0..b67203d5 100644
--- a/audio/core/2.0/default/Device.cpp
+++ b/audio/core/2.0/default/Device.cpp
@@ -21,7 +21,7 @@
21#include "core/2.0/default/Conversions.h" 21#include "core/2.0/default/Conversions.h"
22#include "core/2.0/default/StreamIn.h" 22#include "core/2.0/default/StreamIn.h"
23#include "core/2.0/default/StreamOut.h" 23#include "core/2.0/default/StreamOut.h"
24#include "core/all-versions/default/Util.h" 24#include "core/2.0/default/Util.h"
25 25
26#define AUDIO_HAL_VERSION V2_0 26#define AUDIO_HAL_VERSION V2_0
27#include <core/all-versions/default/Device.impl.h> 27#include <core/all-versions/default/Device.impl.h>
diff --git a/audio/core/2.0/default/ParametersUtil.cpp b/audio/core/2.0/default/ParametersUtil.cpp
index 33a3ad9b..963e291d 100644
--- a/audio/core/2.0/default/ParametersUtil.cpp
+++ b/audio/core/2.0/default/ParametersUtil.cpp
@@ -15,6 +15,7 @@
15 */ 15 */
16 16
17#include "core/2.0/default/ParametersUtil.h" 17#include "core/2.0/default/ParametersUtil.h"
18#include "core/2.0/default/Util.h"
18 19
19#define AUDIO_HAL_VERSION V2_0 20#define AUDIO_HAL_VERSION V2_0
20#include <core/all-versions/default/ParametersUtil.impl.h> 21#include <core/all-versions/default/ParametersUtil.impl.h>
diff --git a/audio/core/2.0/default/PrimaryDevice.cpp b/audio/core/2.0/default/PrimaryDevice.cpp
index ce574038..decaa146 100644
--- a/audio/core/2.0/default/PrimaryDevice.cpp
+++ b/audio/core/2.0/default/PrimaryDevice.cpp
@@ -17,7 +17,7 @@
17#define LOG_TAG "PrimaryDeviceHAL" 17#define LOG_TAG "PrimaryDeviceHAL"
18 18
19#include "core/2.0/default/PrimaryDevice.h" 19#include "core/2.0/default/PrimaryDevice.h"
20#include "core/all-versions/default/Util.h" 20#include "core/2.0/default/Util.h"
21 21
22#define AUDIO_HAL_VERSION V2_0 22#define AUDIO_HAL_VERSION V2_0
23#include <core/all-versions/default/PrimaryDevice.impl.h> 23#include <core/all-versions/default/PrimaryDevice.impl.h>
diff --git a/audio/core/2.0/default/Stream.cpp b/audio/core/2.0/default/Stream.cpp
index 69ee6598..0863a7c3 100644
--- a/audio/core/2.0/default/Stream.cpp
+++ b/audio/core/2.0/default/Stream.cpp
@@ -19,6 +19,7 @@
19#include "core/2.0/default/Stream.h" 19#include "core/2.0/default/Stream.h"
20#include "common/all-versions/default/EffectMap.h" 20#include "common/all-versions/default/EffectMap.h"
21#include "core/2.0/default/Conversions.h" 21#include "core/2.0/default/Conversions.h"
22#include "core/2.0/default/Util.h"
22 23
23#define AUDIO_HAL_VERSION V2_0 24#define AUDIO_HAL_VERSION V2_0
24#include <core/all-versions/default/Stream.impl.h> 25#include <core/all-versions/default/Stream.impl.h>
diff --git a/audio/core/2.0/default/StreamIn.cpp b/audio/core/2.0/default/StreamIn.cpp
index 6b8776eb..2021df1c 100644
--- a/audio/core/2.0/default/StreamIn.cpp
+++ b/audio/core/2.0/default/StreamIn.cpp
@@ -17,7 +17,7 @@
17#define LOG_TAG "StreamInHAL" 17#define LOG_TAG "StreamInHAL"
18 18
19#include "core/2.0/default/StreamIn.h" 19#include "core/2.0/default/StreamIn.h"
20#include "core/all-versions/default/Util.h" 20#include "core/2.0/default/Util.h"
21 21
22#define AUDIO_HAL_VERSION V2_0 22#define AUDIO_HAL_VERSION V2_0
23#include <core/all-versions/default/StreamIn.impl.h> 23#include <core/all-versions/default/StreamIn.impl.h>
diff --git a/audio/core/2.0/default/StreamOut.cpp b/audio/core/2.0/default/StreamOut.cpp
index 7f1461ac..940a2512 100644
--- a/audio/core/2.0/default/StreamOut.cpp
+++ b/audio/core/2.0/default/StreamOut.cpp
@@ -17,7 +17,7 @@
17#define LOG_TAG "StreamOutHAL" 17#define LOG_TAG "StreamOutHAL"
18 18
19#include "core/2.0/default/StreamOut.h" 19#include "core/2.0/default/StreamOut.h"
20#include "core/all-versions/default/Util.h" 20#include "core/2.0/default/Util.h"
21 21
22#define AUDIO_HAL_VERSION V2_0 22#define AUDIO_HAL_VERSION V2_0
23#include <core/all-versions/default/StreamOut.impl.h> 23#include <core/all-versions/default/StreamOut.impl.h>
diff --git a/audio/core/2.0/default/include/core/2.0/default/Util.h b/audio/core/2.0/default/include/core/2.0/default/Util.h
new file mode 100644
index 00000000..1f0e284d
--- /dev/null
+++ b/audio/core/2.0/default/include/core/2.0/default/Util.h
@@ -0,0 +1,26 @@
1/*
2 * Copyright (C) 2018 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#ifndef ANDROID_HARDWARE_AUDIO_V2_0_UTIL_H
18#define ANDROID_HARDWARE_AUDIO_V2_0_UTIL_H
19
20#include <android/hardware/audio/2.0/types.h>
21
22#define AUDIO_HAL_VERSION V2_0
23#include <core/all-versions/default/Util.h>
24#undef AUDIO_HAL_VERSION
25
26#endif // ANDROID_HARDWARE_AUDIO_V2_0_UTIL_H