diff options
author | Eric Laurent <elaurent@google.com> | 2014-10-07 20:52:12 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-07 20:52:12 +0000 |
commit | 5bed74771daa5f0f8907aeb529d2ab0f388140b2 (patch) | |
tree | 6309dc83fafe4e603d5c02a2266746ba0d5ef497 | |
parent | 95222a17cb00503539fa6d9884ca8c51d9a23a15 (diff) | |
parent | 07811789ebf31f5317403356f624d04282e666aa (diff) | |
download | frameworks_av-5bed74771daa5f0f8907aeb529d2ab0f388140b2.zip frameworks_av-5bed74771daa5f0f8907aeb529d2ab0f388140b2.tar.gz frameworks_av-5bed74771daa5f0f8907aeb529d2ab0f388140b2.tar.bz2 |
am 07811789: Merge "audio policy: fix build with USE_LEGACY_AUDIO_POLICY" into lmp-dev
* commit '07811789ebf31f5317403356f624d04282e666aa':
audio policy: fix build with USE_LEGACY_AUDIO_POLICY
-rw-r--r-- | services/audiopolicy/AudioPolicyClientImplLegacy.cpp | 2 | ||||
-rw-r--r-- | services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/services/audiopolicy/AudioPolicyClientImplLegacy.cpp b/services/audiopolicy/AudioPolicyClientImplLegacy.cpp index 9639096..97719da 100644 --- a/services/audiopolicy/AudioPolicyClientImplLegacy.cpp +++ b/services/audiopolicy/AudioPolicyClientImplLegacy.cpp @@ -96,7 +96,7 @@ static audio_io_handle_t open_output(audio_module_handle_t module, *pFormat = config.format; *pChannelMask = config.channel_mask; if (offloadInfo != NULL) { - *offloadInfo = config.offload_info; + *((audio_offload_info_t *)offloadInfo) = config.offload_info; } } return output; diff --git a/services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp b/services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp index 9f66fd1..e1e81e1 100644 --- a/services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp +++ b/services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp @@ -24,6 +24,7 @@ #include <system/audio.h> #include <system/audio_policy.h> #include <hardware/audio_policy.h> +#include <media/AudioPolicyHelper.h> namespace android { @@ -525,7 +526,7 @@ status_t AudioPolicyService::setAudioPortConfig(const struct audio_port_config * return INVALID_OPERATION; } -audio_io_handle_t AudioPolicyService::getOutputForAttr(const audio_attributes_t *attr __unused, +audio_io_handle_t AudioPolicyService::getOutputForAttr(const audio_attributes_t *attr, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, |