[HTC One X] tortellini:
Hello RR Users,

I tried to build the new rom 5.4.0 with CM 12.1, but the build crash.

It's probably an error with the device tree.

I use the CM12 device tree, but it doesnt works with CM 12.1.

Please help ;) [MENTION=2879446]Thömy[/MENTION] [MENTION=698346]teemo[/MENTION]

In file included from device/htc/tegra3-common/include/hardware/audio.h:31:0,
from frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:91:
device/htc/tegra3-common/include/system/audio.h:881:1: warning: missing initializer for member 'audio_offload_info_t::bit_width' [-Wmissing-field-initializers]
};
^
device/htc/tegra3-common/include/system/audio.h:881:1: warning: missing initializer for member 'audio_offload_info_t::use_small_bufs' [-Wmissing-field-initializers]
device/htc/tegra3-common/include/system/audio.h:913:1: warning: missing initializer for member 'audio_offload_info_t::bit_width' [-Wmissing-field-initializers]
};
^
device/htc/tegra3-common/include/system/audio.h:913:1: warning: missing initializer for member 'audio_offload_info_t::use_small_bufs' [-Wmissing-field-initializers]
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'virtual void android::AudioPolicyManager::setPhoneState(audio_mode_t)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:844:27: error: 'AUDIO_STREAM_PATCH' was not declared in this scope
if (stream == AUDIO_STREAM_PATCH) {
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:851:45: error: 'AUDIO_STREAM_ACCESSIBILITY' was not declared in this scope
mpClientInterface->invalidateStream(AUDIO_STREAM_ACCESSIBILITY);
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:1130:27: error: 'AUDIO_STREAM_PATCH' was not declared in this scope
if (stream == AUDIO_STREAM_PATCH) {
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'virtual android::status_t android::AudioPolicyManager::getOutputForAttr(const audio_attributes_t*, audio_io_handle_t*, audio_session_t, audio_stream_type_t*, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:1338:54: error: 'AUDIO_STREAM_PUBLIC_CNT' was not declared in this scope
if (*stream < AUDIO_STREAM_MIN || *stream >= AUDIO_STREAM_PUBLIC_CNT) {
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:1365:37: error: 'AUDIO_USAGE_VIRTUAL_SOURCE' was not declared in this scope
if (attributes.usage == AUDIO_USAGE_VIRTUAL_SOURCE &&
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:1384:29: error: 'AUDIO_USAGE_VIRTUAL_SOURCE' was not declared in this scope
if (attributes.usage == AUDIO_USAGE_VIRTUAL_SOURCE) {
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'virtual android::status_t android::AudioPolicyManager::startOutput(audio_io_handle_t, audio_stream_type_t, audio_session_t)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:1949:49: error: 'AUDIO_STREAM_ACCESSIBILITY' was not declared in this scope
mpClientInterface->invalidateStream(AUDIO_STREAM_ACCESSIBILITY);
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'virtual void android::AudioPolicyManager::initStreamVolume(audio_stream_type_t, int, int)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:2636:18: error: 'AUDIO_STREAM_ACCESSIBILITY' was not declared in this scope
mStreams[AUDIO_STREAM_ACCESSIBILITY].mIndexMin = indexMin;
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'virtual android::status_t android::AudioPolicyManager::setStreamVolumeIndex(audio_stream_type_t, int, audio_devices_t)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:2674:18: error: 'AUDIO_STREAM_ACCESSIBILITY' was not declared in this scope
mStreams[AUDIO_STREAM_ACCESSIBILITY].mIndexCur.add(device, index);
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:2700:52: error: 'AUDIO_STREAM_ACCESSIBILITY' was not declared in this scope
status_t volStatus = checkAndSetVolume(AUDIO_STREAM_ACCESSIBILITY,
^
In file included from frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:96:0:
frameworks/av/services/audiopolicy/AudioPolicyManager.h: In constructor 'android::AudioPolicyManager::AudioPolicyManager(android::AudioPolicyClientInterface*)':
frameworks/av/services/audiopolicy/AudioPolicyManager.h:948:13: warning: 'android::AudioPolicyManager::mPrevPhoneState' will be initialized after [-Wreorder]
int mPrevPhoneState;
^
frameworks/av/services/audiopolicy/AudioPolicyManager.h:904:18: warning: 'uint32_t android::AudioPolicyManager::mPrimarySuspended' [-Wreorder]
uint32_t mPrimarySuspended;
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:4000:1: warning: when initialized here [-Wreorder]
AudioPolicyManager::AudioPolicyManager(AudioPolicyClientInterface *clientInterface)
^
In file included from frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:96:0:
frameworks/av/services/audiopolicy/AudioPolicyManager.h:906:18: warning: 'android::AudioPolicyManager::mMultiChannelSuspended' will be initialized after [-Wreorder]
uint32_t mMultiChannelSuspended;
^
frameworks/av/services/audiopolicy/AudioPolicyManager.h:837:26: warning: 'volatile int32_t android::AudioPolicyManager::mAudioPortGeneration' [-Wreorder]
volatile int32_t mAudioPortGeneration;
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:4000:1: warning: when initialized here [-Wreorder]
AudioPolicyManager::AudioPolicyManager(AudioPolicyClientInterface *clientInterface)
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'void android::AudioPolicyManager::checkOutputForStrategy(android::AudioPolicyManager::routing_strategy)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:5148:22: error: 'AUDIO_STREAM_PATCH' was not declared in this scope
if (i == AUDIO_STREAM_PATCH) {
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'virtual audio_devices_t android::AudioPolicyManager::getDevicesForStream(audio_stream_type_t)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:5335:55: error: 'AUDIO_STREAM_PUBLIC_CNT' was not declared in this scope
if (stream < (audio_stream_type_t) 0 || stream >= AUDIO_STREAM_PUBLIC_CNT) {
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In static member function 'static android::AudioPolicyManager::routing_strategy android::AudioPolicyManager::getStrategy(audio_stream_type_t)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:5389:10: error: 'AUDIO_STREAM_ACCESSIBILITY' was not declared in this scope
case AUDIO_STREAM_ACCESSIBILITY:
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:5391:10: error: 'AUDIO_STREAM_REROUTING' was not declared in this scope
case AUDIO_STREAM_REROUTING:
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'virtual audio_devices_t android::AudioPolicyManager::getDeviceForInputSource(audio_source_t)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:6395:11: error: 'AUDIO_SOURCE_FM_TUNER' was not declared in this scope
case AUDIO_SOURCE_FM_TUNER:
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: At global scope:
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:6746:1: error: too many initializers for 'const android::AudioPolicyManager::VolumeCurvePoint* [10][4]'
};
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'void android::AudioPolicyManager::initializeVolumeCurves()':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:6769:18: error: 'AUDIO_STREAM_ACCESSIBILITY' was not declared in this scope
mStreams[AUDIO_STREAM_ACCESSIBILITY].mVolumeCurve[DEVICE_CATEGORY_SPEAKER] =
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'void android::AudioPolicyManager::applyStreamVolumes(audio_io_handle_t, audio_devices_t, int, bool)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:6937:23: error: 'AUDIO_STREAM_PATCH' was not declared in this scope
if (stream == AUDIO_STREAM_PATCH) {
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'void android::AudioPolicyManager::setStrategyMute(android::AudioPolicyManager::routing_strategy, bool, audio_io_handle_t, int, audio_devices_t)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:6957:23: error: 'AUDIO_STREAM_PATCH' was not declared in this scope
if (stream == AUDIO_STREAM_PATCH) {
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'bool android::AudioPolicyManager::AudioOutputDescriptor::isStrategyActive(android::AudioPolicyManager::routing_strategy, uint32_t, nsecs_t) const':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:7172:18: error: 'AUDIO_STREAM_PATCH' was not declared in this scope
if (i == AUDIO_STREAM_PATCH) {
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'audio_stream_type_t android::AudioPolicyManager::streamTypefromAttributesInt(const audio_attributes_t*)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:9211:16: error: 'AUDIO_STREAM_ACCESSIBILITY' was not declared in this scope
return AUDIO_STREAM_ACCESSIBILITY;
^
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp: In member function 'bool android::AudioPolicyManager::isValidAttributes(const audio_attributes_t*)':
frameworks/av/services/audiopolicy/AudioPolicyManager.cpp:9697:10: error: 'AUDIO_USAGE_VIRTUAL_SOURCE' was not declared in this scope
case AUDIO_USAGE_VIRTUAL_SOURCE:
^
make: *** [/home/tortellini/rr/out/target/product/endeavoru/obj/SHARED_LIBRARIES/libaudiopolicymanagerdefault_intermediates/AudioPolicyManager.o] Error 1
make: *** Waiting for unfinished jobs....
tortellini@tortellini49FR:~/rr$