diff options
author | Kevin Rocard <krocard@google.com> | 2018-03-01 15:08:07 -0800 |
---|---|---|
committer | Kevin Rocard <krocard@google.com> | 2018-03-02 13:20:02 -0800 |
commit | 30a7fcca2922536c0a1f402c3c21bdf3a2008514 (patch) | |
tree | cf425d705008d7fba130061ef75b66a8977af85e /audio/common/2.0 | |
parent | ab1f548cf13a7619175360bb2c563f28414fe84a (diff) | |
download | platform_hardware_interfaces-30a7fcca2922536c0a1f402c3c21bdf3a2008514.tar.gz platform_hardware_interfaces-30a7fcca2922536c0a1f402c3c21bdf3a2008514.tar.bz2 platform_hardware_interfaces-30a7fcca2922536c0a1f402c3c21bdf3a2008514.zip |
Audio V4: Implement the shim effect 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: If412eb55ebf6afc773593547af9395a09b6825c2
Signed-off-by: Kevin Rocard <krocard@google.com>
Diffstat (limited to 'audio/common/2.0')
-rw-r--r-- | audio/common/2.0/default/VersionUtils.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/audio/common/2.0/default/VersionUtils.h b/audio/common/2.0/default/VersionUtils.h new file mode 100644 index 0000000000..fef468080e --- /dev/null +++ b/audio/common/2.0/default/VersionUtils.h @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2018 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. + */ + +#ifndef ANDROID_HARDWARE_AUDIO_EFFECT_VERSION_UTILS_H +#define ANDROID_HARDWARE_AUDIO_EFFECT_VERSION_UTILS_H + +#include <android/hardware/audio/common/2.0/types.h> + +namespace android { +namespace hardware { +namespace audio { +namespace common { +namespace V2_0 { +namespace implementation { + +typedef common::V2_0::AudioDevice AudioDeviceBitfield; +typedef common::V2_0::AudioChannelMask AudioChannelBitfield; + +} // namespace implementation +} // namespace V2_0 +} // namespace common +} // namespace audio +} // namespace hardware +} // namespace android + +#endif // ANDROID_HARDWARE_AUDIO_EFFECT_VERSION_UTILS_H |