graphics: Add directives for compatibility with older EGL blobs (1/2)

Port from CM9.
Original author Ricardo Cerqueira (commit
fc496c0607d0d2863ff9587019e890ab806ea49d)

Change-Id: I2789a98a7069d90da30ec1231882b697f2140fce
Add MISSING_EGL_EXTERNAL_IMAGE ifdef to NativeWindowRenderer

Change-Id: I0e9cf6ac1c6da17326525ee1be26a3b3ea9c29e7
Implement hack to enable audio thru docks on Motorola phones

This allows us to pass a routing parameter to io 1 while sending
the DockState parameter to io 0 simultaneously. This is required
to enable the correct audio routing when docking/undocking and
allows audio on docks to work when combined with the DockAudio
package.

Change-Id: I5f677977ade49be528141ff46296509295afd304
Camera Overlay

Change-Id: Id0359d9e7f557b4964a1976bb2906ad96adea7fd
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

Conflicts:
	media/libmedia/AudioSystem.cpp