STE Multimedia Fix

Change-Id: I80533f2348a7c61791aa19bd6316e08a6ae5e030
Build libmedia with AudioParameter

cherry-picked from https://github.com/CyanogenMod/android_frameworks_av/commit/ced8df44565281ad1fbea69936b33b36c7e9c447
AV : STE-OMX Fix Video Streaming.

-Finally found a fix for the underlying usebuffer problem.

-This should fix streaming video on alot of apps. I have tested
this with Crackle and Twitch both of which are working with this
patch.

-May also render my previous Instagram fix unneccessary. ( not tested )
stagefright:matroska: Fix playback of mkv files

Change-Id: Ibeead7e0cbddadfde6012f73afecdf7eb818eab8
audioflinger: Allow mixed use of JB A2DP HALs and ICS policy

Old policies don't address the modules by handle and expect them
all to be scanned for supported devices; new modules stopped
listing supported devices. The combination of a new A2DP with
an old policy left policy unable to find A2DP outputs, so the
new HALs couldn't be used.

So... if an old policy is in use, searching for an A2DP output,
and finds a non-primary HAL that doesn't list any device, assume
it's A2DP and use it.

Change-Id: Ie946c065b5c325afd02ba3437077f634e079b386
More ifdefs for ICS audio blobs support

Change-Id: I1e01db9b7cb2da45a3e52aafe7574b689a9c57f4
Added ifndef ICS_AUDIO_BLOB around non-existent functions (3/3)

For older audio blobs where is_source_active and is_stream_active_remotely
doesn't exist, receiving a notification and dumpsys crashes the audio service.

Change-Id: I554f00ba7f171d2ea91627cae2281623383b3ca7
AudioPolicyService: Support MR1 audio_policy

Change-Id: I26abd352f327256856021b311efb1e23b46b6023