[AT&T Samsung Galaxy S II Skyrocket SGH-I727] m4570d0n:
Ive been trying to make a new build for the last day or two with some cherry picks and no matter what Ive tried i still error out. Anyone tried building with these and successfully complete a build??

frameworks/av: Implement DirectTrack and DirectTrackClient

AudioFlinger: Disable AUDIO_WATCHDOG to reduce high audio power

Those two have to be used together as they are both dependent upon each other. When I use those two cherry picks I get:

hardware/qcom/audio/msm8660/audio_hw_hal.cpp: In function 'int android_audio_legacy::adev_open_output_stream(audio_hw_device*, audio_io_handle_t, audio_devices_t, audio_output_flags_t, audio_config*, audio_stream_out**)':
hardware/qcom/audio/msm8660/audio_hw_hal.cpp:489:69: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
hardware/qcom/audio/msm8660/audio_hw_hal.cpp: In function 'int android_audio_legacy::adev_open_input_stream(audio_hw_device*, audio_io_handle_t, audio_devices_t, audio_config*, audio_stream_in**)':
hardware/qcom/audio/msm8660/audio_hw_hal.cpp:551:73: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/m4570d0n/cm10/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/SHARED_LIBRARIES/libstagefright_intermediates/AwesomePlayer.o: in function android::AwesomePlayer::play_l():frameworks/av/media/libstagefright/AwesomePlayer.cpp:1081: error: undefined reference to 'android::LPAPlayer::LPAPlayer(android::sp<android::MediaPlayerBase::AudioSink> const&, bool&, android::AwesomePlayer*)'
/home/m4570d0n/cm10/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/skyrocket/obj/SHARED_LIBRARIES/libstagefright_intermediates/AwesomePlayer.o: in function android::AwesomePlayer::play_l():frameworks/av/media/libstagefright/AwesomePlayer.cpp:1175: error: undefined reference to 'android::LPAPlayer::objectsAlive'
collect2: ld returned 1 exit status
make: *** [out/target/product/skyrocket/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so] Error 1
make: *** Waiting for unfinished jobs....

I tried another cherry pick with and without those two frameworks/av commits above

audio: Support for more QCOM audio features

When I try that, I get this error:

hardware/qcom/audio/msm8660/audio_hw_hal.cpp: In function 'int android_audio_legacy::adev_open_output_stream(audio_hw_device*, audio_io_handle_t, audio_devices_t, audio_output_flags_t, audio_config*, audio_stream_out**)':
hardware/qcom/audio/msm8660/audio_hw_hal.cpp:489:69: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
hardware/qcom/audio/msm8660/audio_hw_hal.cpp:492: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*)'
hardware/qcom/audio/msm8660/audio_hw_hal.cpp:492:60: note: candidate is:
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:262: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:262:29: note: no known conversion for argument 2 from 'int*' to 'audio_output_flags_t'
hardware/qcom/audio/msm8660/audio_hw_hal.cpp: In function 'int android_audio_legacy::adev_open_input_stream(audio_hw_device*, audio_io_handle_t, audio_devices_t, audio_config*, audio_stream_in**)':
hardware/qcom/audio/msm8660/audio_hw_hal.cpp:551:73: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
make: *** [out/target/product/skyrocket/obj/SHARED_LIBRARIES/audio.primary.msm8660_intermediates/audio_hw_hal.o] Error 1
make: *** Waiting for unfinished jobs....

I''ve also tried that one with and without this one:

Change I1e7cb946: hardware/libhardware_legacy: Add interface function for LPA and FM

There were a few others but they have been merged now, except this one:

gralloc: gralloc_getphys: fix type of paddr