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
Merged-In: I0d699ade7558ed68125b300f8522e2767ae1ee37
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
diff --git a/audio/common/2.0/default/VersionUtils.h b/audio/common/2.0/default/VersionUtils.h
index fef4680..60d1f9c 100644
--- a/audio/common/2.0/default/VersionUtils.h
+++ b/audio/common/2.0/default/VersionUtils.h
@@ -28,6 +28,8 @@
 
 typedef common::V2_0::AudioDevice AudioDeviceBitfield;
 typedef common::V2_0::AudioChannelMask AudioChannelBitfield;
+typedef common::V2_0::AudioOutputFlag AudioOutputFlagBitfield;
+typedef common::V2_0::AudioInputFlag AudioInputFlagBitfield;
 
 }  // namespace implementation
 }  // namespace V2_0
diff --git a/audio/common/4.0/default/VersionUtils.h b/audio/common/4.0/default/VersionUtils.h
index 515c792..b7f2aec 100644
--- a/audio/common/4.0/default/VersionUtils.h
+++ b/audio/common/4.0/default/VersionUtils.h
@@ -17,7 +17,7 @@
 #ifndef ANDROID_HARDWARE_AUDIO_EFFECT_VERSION_UTILS_H
 #define ANDROID_HARDWARE_AUDIO_EFFECT_VERSION_UTILS_H
 
-#include <android/hardware/audio/4.0/types.h>
+#include <android/hardware/audio/common/4.0/types.h>
 
 namespace android {
 namespace hardware {
@@ -28,6 +28,8 @@
 
 typedef hidl_bitfield<common::V4_0::AudioDevice> AudioDeviceBitfield;
 typedef hidl_bitfield<common::V4_0::AudioChannelMask> AudioChannelBitfield;
+typedef hidl_bitfield<common::V4_0::AudioOutputFlag> AudioOutputFlagBitfield;
+typedef hidl_bitfield<common::V4_0::AudioInputFlag> AudioInputFlagBitfield;
 
 }  // namespace implementation
 }  // namespace V4_0