summaryrefslogtreecommitdiff
path: root/audio/core/4.0/default/StreamIn.cpp
diff options
context:
space:
mode:
authorKevin Rocard <krocard@google.com>2018-03-01 15:08:07 -0800
committerKevin Rocard <krocard@google.com>2018-03-05 17:04:33 -0800
commit4fa9ca1337a426eb8217129b01a80f01bc9229ce (patch)
treea8200e9b49d27c1ff21360ccb06cf84a1ed33ed1 /audio/core/4.0/default/StreamIn.cpp
parent4e914ffb1ad9ca621438623ad69af6498ff570e7 (diff)
Audio V4: Implement the shim core 4.0 -> legacy
All the new files added are a copy of the 2.0 ones, with just the version 2 that was changed to 4. Due to the rollback on the retrocompatiblity breakage, the split of implementation is not strictly needed any more. This makes the current split in .impl.h and double include unnecessary complicated. This will need to be factorized in a future patch. Bug: 38184704 Test: compile Change-Id: I0d699ade7558ed68125b300f8522e2767ae1ee37 Signed-off-by: Kevin Rocard <krocard@google.com>
Diffstat (limited to 'audio/core/4.0/default/StreamIn.cpp')
-rw-r--r--audio/core/4.0/default/StreamIn.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/audio/core/4.0/default/StreamIn.cpp b/audio/core/4.0/default/StreamIn.cpp
new file mode 100644
index 0000000000..18719b5da2
--- /dev/null
+++ b/audio/core/4.0/default/StreamIn.cpp
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2017 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.
+ */
+
+#define LOG_TAG "StreamInHAL"
+
+#include "core/4.0/default/StreamIn.h"
+#include "core/all-versions/default/Util.h"
+
+#define AUDIO_HAL_VERSION V4_0
+#include <core/all-versions/default/StreamIn.impl.h>
+#undef AUDIO_HAL_VERSION