[LG Optimus L3 II, L5 II, L7 II, L9 II] weritos:
CM11 compiling audio

Compiled firmware for the smartphone, the firmware is going, but the sound is not working, as needed libraries HAL

When compiling an error occurs, how to solve them, I do not know ....

Any ideas?

device/lge/p715/audio/audio_hw_hal.cpp:556:60: error: no matching function for call to 'android_audio_legacy::AudioHardwareInterface::openOutputStream(audio_devices_t&, int*, audio_channel_mask_t*, uint32_t*, android::status_t*)'
device/lge/p715/audio/audio_hw_hal.cpp:556:60: note: candidate is:
In file included from device/lge/p715/audio/audio_hw_hal.cpp:27:0:
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:263:29: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, audio_output_flags_t, int*, uint32_t*, uint32_t*, android::status_t*)
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:263:29: note: no known conversion for argument 2 from 'int*' to 'audio_output_flags_t'
In file included from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:34:0,
from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareBase.h:20,
from device/lge/p715/audio/AudioHardware.h:29,
from device/lge/p715/audio/AudioHardware.cpp:35:
hardware/libhardware/include/hardware/audio.h:151:47: warning: missing whitespace after the macro name [enabled by default]
make: *** [/home/weritos/cm11_dns/out/target/product/p715/obj/SHARED_LIBRARIES/audio.primary.msm7x27a_intermediates/audio_hw_hal.o] Ошибка 1
make: *** Ожидание завершения заданий...
In file included from device/lge/p715/audio/AudioHardware.cpp:35:0:
device/lge/p715/audio/AudioHardware.h:71:0: warning: "SRS_DISABLE" redefined [enabled by default]
In file included from device/lge/p715/audio/AudioHardware.h:32:0,
from device/lge/p715/audio/AudioHardware.cpp:35:
device/lge/p715/include/linux/msm_audio.h:140:0: note: this is the location of the previous definition
In file included from device/lge/p715/audio/AudioHardware.cpp:35:0:
device/lge/p715/audio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/lge/p715/audio/AudioHardware.h:623:25: warning: 'android_audio_legacy::AudioHardware::mTtyMode' will be initialized after [-Wreorder]
device/lge/p715/audio/AudioHardware.h:604:37: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutMSM72xx* android_audio_legacy::AudioHardware::mOutput' [-Wreorder]
device/lge/p715/audio/AudioHardware.cpp:148:1: warning: when initialized here [-Wreorder]
In file included from device/lge/p715/audio/AudioHardware.cpp:35:0:
device/lge/p715/audio/AudioHardware.h:604:37: warning: 'android_audio_legacy::AudioHardware::mOutput' will be initialized after [-Wreorder]
device/lge/p715/audio/AudioHardware.h:602:25: warning: 'bool android_audio_legacy::AudioHardware::mBluetoothVGS' [-Wreorder]
device/lge/p715/audio/AudioHardware.cpp:148:1: warning: when initialized here [-Wreorder]
In file included from device/lge/p715/audio/AudioHardware.cpp:35:0:
device/lge/p715/audio/AudioHardware.h:622:25: warning: 'android_audio_legacy::AudioHardware::mDualMicEnabled' will be initialized after [-Wreorder]
device/lge/p715/audio/AudioHardware.h:598:25: warning: 'int android_audio_legacy::AudioHardware::mFmFd' [-Wreorder]
device/lge/p715/audio/AudioHardware.cpp:148:1: warning: when initialized here [-Wreorder]
In file included from device/lge/p715/audio/AudioHardware.cpp:35:0:
device/lge/p715/audio/AudioHardware.h:627:18: warning: 'android_audio_legacy::AudioHardware::mVoipOutActive' will be initialized after [-Wreorder]
device/lge/p715/audio/AudioHardware.h:606:36: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutDirect* android_audio_legacy::AudioHardware::mDirectOutput' [-Wreorder]
device/lge/p715/audio/AudioHardware.cpp:148:1: warning: when initialized here [-Wreorder]
device/lge/p715/audio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setParameters(const android::String8&)':
device/lge/p715/audio/AudioHardware.cpp:659:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp: In member function 'virtual android::String8 android_audio_legacy::AudioHardware::getParameters(const android::String8&)':
device/lge/p715/audio/AudioHardware.cpp:840:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/lge/p715/audio/AudioHardware.cpp:1384:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp:1389:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp:1394:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/lge/p715/audio/AudioHardware.cpp:1617:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp:1617:98: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doAudioRouteOrMute(uint32_t)':
device/lge/p715/audio/AudioHardware.cpp:1752:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp:1755:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp:1756:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp:1757:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp:1758:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*, int)':
device/lge/p715/audio/AudioHardware.cpp:1921:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/p715/audio/AudioHardware.cpp:1924:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from device/lge/p715/audio/AudioHardware.cpp:35:0:
device/lge/p715/audio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioStreamInVoip::AudioStreamInVoip()':
device/lge/p715/audio/AudioHardware.h:587:29: warning: 'android_audio_legacy::AudioHardware::AudioStreamInVoip::mDevices' will be initialized after [-Wreorder]
device/lge/p715/audio/AudioHardware.h:575:29: warning: 'bool android_audio_legacy::AudioHardware::AudioStreamInVoip::mSetupDevice' [-Wreorder]
device/lge/p715/audio/AudioHardware.cpp:2120:1: warning: when initialized here [-Wreorder]
device/lge/p715/audio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::AudioStreamInVoip::set(android_audio_legacy::AudioHardware*, uint32_t, int*, uint32_t*, uint32_t*, android_audio_legacy::AudioSystem::audio_in_acoustics)':
device/lge/p715/audio/AudioHardware.cpp:2135:71: warning: comparison is always false due to limited range of data type [-Wtype-limits]
device/lge/p715/audio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInVoip::read(void*, ssize_t)':
device/lge/p715/audio/AudioHardware.cpp:2308:34: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
In file included from device/lge/p715/audio/AudioHardware.cpp:35:0:
device/lge/p715/audio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioStreamOutDirect::AudioStreamOutDirect()':
device/lge/p715/audio/AudioHardware.h:345:29: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutDirect::mStartCount' will be initialized after [-Wreorder]
device/lge/p715/audio/AudioHardware.h:344:29: warning: 'int android_audio_legacy::AudioHardware::AudioStreamOutDirect::mRetryCount' [-Wreorder]
device/lge/p715/audio/AudioHardware.cpp:2699:1: warning: when initialized here [-Wreorder]
device/lge/p715/audio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::AudioStreamOutDirect::set(android_audio_legacy::AudioHardware*, uint32_t, int*, uint32_t*, uint32_t*)':
device/lge/p715/audio/AudioHardware.cpp:2715:70: warning: comparison is always false due to limited range of data type [-Wtype-limits]
device/lge/p715/audio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamOutDirect::write(const void*, size_t)':
device/lge/p715/audio/AudioHardware.cpp:2858:34: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
device/lge/p715/audio/AudioHardware.cpp: In constructor 'android_audio_legacy::AudioHardware::AudioSessionOutLPA::AudioSessionOutLPA(android_audio_legacy::AudioHardware*, uint32_t, int, uint32_t, uint32_t, int, android::status_t*)':
device/lge/p715/audio/AudioHardware.cpp:3399:27: warning: converting to non-pointer type 'pthread_t {aka long int}' from NULL [-Wconversion-null]
device/lge/p715/audio/AudioHardware.cpp: In member function 'void* android_audio_legacy::AudioHardware::AudioSessionOutLPA::memBufferAlloc(int, int32_t*)':
device/lge/p715/audio/AudioHardware.cpp:3645:24: error: 'ION_AUDIO_HEAP_BL_ID' was not declared in this scope
device/lge/p715/audio/AudioHardware.cpp: In function 'android_audio_legacy::AudioHardwareInterface* android_audio_legacy::createAudioHardware()':
device/lge/p715/audio/AudioHardware.cpp:4320:30: error: cannot allocate an object of abstract type 'android_audio_legacy::AudioHardware'
In file included from device/lge/p715/audio/AudioHardware.cpp:35:0:
device/lge/p715/audio/AudioHardware.h:182:7: note: because the following virtual functions are pure within 'android_audio_legacy::AudioHardware':
In file included from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareBase.h:20:0,
from device/lge/p715/audio/AudioHardware.h:29,
from device/lge/p715/audio/AudioHardware.cpp:35:
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:263:29: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, audio_output_flags_t, int*, uint32_t*, uint32_t*, android::status_t*)
device/lge/p715/audio/AudioHardware.cpp:4321:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors
make: *** [/home/weritos/cm11_dns/out/target/product/p715/obj/SHARED_LIBRARIES/audio.primary.msm7x27a_intermediates/AudioHardware.o] Ошибка 1
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.andro...k/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.andro...k/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.andro...k/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.andro...k/res/android); using existing value in manifest.
weritos@weritos-System-Product-Name:~/cm11_dns$

Without it there is no sound

No sound or repair that sense I do not see