Overlay for omap3 camera devices.
audio: Add compatibility bits to use legacy libaudio implementations

Enable with BOARD_USES_AUDIO_LEGACY, requires the use of the generic
legacy audio shim

Change-Id: I60407b48c2a8f3c9736805f31dcdef280c9aa485
libstagefright: fix indefinate loop in QueryCodec

portFormat.nIndex is being incremented which is not
trustworthy since the nIndex value could be overriden
by the OMX Component,  which causes an indefinate loop
which inturn causes a memory leak and crashes the system.

OMX Component on encore and p970 exhibits this behaviour
(OMX.TI.720P.Decoder). This patch prevents stagefright
freezes when QueryCodec is called during Gallery Thumbnail
generation for videos and Adobe Flash playback.

Change-Id: I825c99ddecacbb927e22ac7d1a53facb26d95ff2
Merge remote-tracking branch 'cyanogen/cm-11.0' into kitkat

Conflicts:
	media/libmedia/AudioSystem.cpp
	media/libstagefright/OMXCodec.cpp
Fix call recording

Conflicts:
	services/audioflinger/AudioFlinger.h
fix for incoming audio crash on Motorola OMAP3/4 phones

Conflicts:
	services/audioflinger/Android.mk
	services/audioflinger/Threads.cpp
Add support old omap3 codecs, for 2.6.32 kernel

Change-Id: I6e97f5fb5ec1fbb098c954c41319221ddb86b08b
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0

Conflicts:
	media/libstagefright/OMXCodec.cpp
	services/audioflinger/AudioFlinger.h
	services/audioflinger/Threads.cpp
fix compile
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0
fix video colors
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0

Conflicts:
	media/libstagefright/AwesomePlayer.cpp
	media/libstagefright/OMXCodec.cpp
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0