Add missing functions and signatures for older OMX video libs compat

Nvidia OMX libs need these to work
That fixes hardware OMX video codecs + Camera on TF101

AudioTrack: Do not inline getSessionId either

Should help for other nvomx versions that requires it.

to use, set the following flag in your BoardConfig:
TARGET_USE_OMAP_COMPAT := true

Change-Id: I9f9afa844edf3e6d1fd25524f2cc155b974245ec
Fix inline assembly for clang

add r8, r0, asl #2
and
add r8, r8, r0, asl #2

are identical in gcc inline assembly, but clang accepts only the latter
variant.

Change-Id: I922367984b6ae2f7268ce99facaf8da425c39d7e
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Introduce AUDIO_LEGACY_HACK to extend support for legacy devices

this is a dirty hack but does what it should.

if we build for legacy device, eg LG Optimus Black P970, we have to use
the ICS_AUDIO_BLOBS flag to get audio.

but if we add it, we get build breakages and if we remove it, we dont have
audio at all.

this hack allows us to set the AUDIO_LEGACY_HACK flag in the BoardConfig and
prevents build breakages.

as i am unsure if every device needs that, i couldnt wrap it around the
ICS_AUDIO_BLOBS flag, thus this new flag is added.

Change-Id: Id545a684fcdc0508f4135eb7a722a9b617595532
Introduce CAMERA_LEGACY_HACK to extend support for legacy devices

same typo of patch like AUDIO_LEGACY_HACK
fixes build breakage on p970 with the following flags set
-DICS_CAMERA_BLOB -DOMAP_ICS_CAMERA

if we remove these flags, it builds fine but we have no camera as well

Change-Id: Ie91a5059153ace383d8f2a7f1539cb77861dce05
fix build breakage when HAVE_PRE_KITKAT_AUDIO_BLOB is set

if the flag is set, return INVALID_OPERATION rather than removing
the whole function.
else we will get build breakages like

undefined reference to
    'android::AudioStreamOutSink::getTimestamp(AudioTimestamp&)'

Change-Id: I0646c6e4af824bc027c800b1e7c85533cfcc1265
Revert "fix build breakage when HAVE_PRE_KITKAT_AUDIO_BLOB is set"

This is fixed now via another way.

This reverts commit 78768e4348f21b18b57deb7b51fc24a7bb5a7206.

Change-Id: I2ffdada85a779326ae1ca71942ccb8f23602215f
screenrecord: Add audio support

Adds audio recording to the screenrecord system. Note that
while recording, the audio is muted from the device output,
and that the audio volume is controlled separately (so make
sure to turn up your volume if you hear nothing).
Audio from the microphone can also be recorded by adding
--microphone to the command line.

Change-Id: I97dfcaf3d93b786c5466e1f4215549e3d015bcf0
screenrecord: Enable SUBMIX_IN as well and cleanup on exit

While on Nexus 5/Nexus 7 (AOSP QCOM audio), trying to turn on
SUBMIX_IN fails and is not needed, it is required on Find 5
and N1 (CAF QCOM audio), or otherwise SUBMIX_OUT won't turn
on.
We also now release the audio routing as it wouldn't revive
the audio speakers otherwise.

Change-Id: I0f80a232304733e0b0a834b188b8cfa5b88915f3
Revert "frameworks: av: camera: add missing HTC cam parameter"

This reverts commit 5c4af026743a85ec034d1a21bba420e4a8642797.

Change-Id: I082a7350703de4d32b8bd4d7f5d7a560d773bfe5
[2/3] av: Audio Themes Support

On the Java side, Android has support for both a
Video Record Start sound, and a different Video
Record Stop sound. However, this part here only
supports one video recording sound.
We added support for RECORDING_STOP sound (by default,
the same as RECORDING).

Change-Id: Iaebddd8ebf8b21633e802589a4a6175492df8f29
audioflinger: Set power hints for audio activity

 * Send a hint to the power manager when audio starts or stops.
 * This lets us behave in a smart way when streams are active-
   ie, don't mess with timer_rate while a2dp is active, which
   can cause skipping. Same deal for USB audio.

Change-Id: Ic1cf3f96afb44a8a5c4af4503cf7b30eed491910
libstagefright: Enhance compress offload logging

Add/Enable msg logging
-Statemachine transitions
-Salient funtion calls to Audio HAL
-Salient funtion calls to awesomeplayer
-Events received from HAL
-Miscellaneous other important events.

Change-Id: Ib54954590f913afe473f20ccb56c46fed0aa000f