[PATCH] ics audio blob fix

AudioPolicyService.cpp changes moved to AudioPolicyManager.cpp

Conflicts:
	services/audioflinger/AudioPolicyService.cpp
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

Conflicts:
	services/audioflinger/Threads.cpp
tf101: Skip NV OMX Plugin crash on Destroy

Fixes Netflix crash on opening
not deleting is better than crashing for the moment.

Board flag is

BOARD_USES_PROPRIETARY_OMX := TF101

Patchset 3: Fix derped ifdef
Patchset 4: Clean tims code...
Patchset 6: Keep as 0
Patchset 7: Cleanup
Change-Id: If3466d37a6483523f3d740734647fd5ec2d4f3da
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

Change-Id: I57fccc15968c196771546ccd1d90e21e7bba33a0

Conflicts:
	include/media/AudioTrack.h
Add support for ICS audio blobs

Enable with the ICS_AUDIO_BLOB CFLAG
audioflinger: Threads: stream flush hack for ICS audio blobs

Disable the stream flush command for Lollipop
Partial Revert: Add missing functions and signatures

Compile conflict AudioTrack constructors.
stagefright: Add back MediaBufferGroup::acquire_buffer for ICS blob

libwvm.so needs this
[PATCH] libstagefright: Copy the entire buffer from/to OMX component

Presence of OMX extradata in buffers isn't reflected as part of
nFilledLen.  To avoid omitting the extradata, copy the entire buffer.

Change-Id: Ib310dda3dc93693d4ab380912a9997d7ea120be1