omap4-common: cap batteryLevel at 100%

Change-Id: I8ca7691d2f3559f3c521cdba8cf542a8e91b7b95
omap4-common: wrap Moto's proprietary audio-HAL

Moto's audio-HAL is internally resampling when playing sound
via bluetooth SCO (voice dialer, google now). When doing so,
the returned value of written bytes is the arbitrary number
192 when in fact all samples have been written.

Wrap Motorola's audio-HAL to overload write() and catch
that scenario and fix the return-value.

Also prevent changing of device-settings when a read/write
is in progress, as this might cause the operation getting
stuck when the device is disabled at the wrong moment.

This should fix sporadic audio-losses caused by changing
mixer-settings while playing/recording.

Change-Id: I8d2e27f67f224dfb48f00801a64c4586b22c70ac
Enable use of FFMPEG codecs for extended formats
Add OMX_AUDIO_Coding and OMX_VIDEO_Coding

Copied from the stagefright-plugins project.
OMAP4 uses it's own OMX_Audio.h, OMX_Index.h, OMX_Video.h

Change-Id: I516f08b78298f5796325ec3ef12f5d7573a01b85
omap4-common: moto_audio_wrapper: wrap standby-functions

Also remove copies of always the same wrapper code, using macros
now.

Change-Id: I8b64eda6975be7493714349917a6439c3b8c1bb5
omap4-common: allow to set the voice-volume using an ICS blob

This fixes in-call volume on edison by redirecting calls to
set_voice_volume to the stock ICS audio-blob and additionally
calling it on set_mode and set_parameters. Other audio-functions
are still handled by the JB blob.

Change-Id: I6425dfd52202436036185f2bce4b5618d01adcaa
omap4-common: moto_audio_wrapper: fix set_mode for ICS blob

Change-Id: Iee07478f9121dc0ca17f00c78fd95fb6a947fa93
omap4-common: camera: libexif was renamed to libjhead in 4.4.3

Change-Id: Ifd06b3fa6d57a748d776ccef9574094149733473
camera: allow building for any 4.4.x version

Change-Id: I2df835d6e4e8c2d04db1b0a8d340c6643f1cc9c5
camera: Add 4.4.4 to versions using libjhead

Change-Id: I49014758f52dbc3d407689e233ba864439128d40
omap4-common: tweak cpufreq configuration

Change-Id: If03ffdd14c4b6d62d0f76545b2b2db6bc0852c53
don't use SoftAAC for downmix

if no multichannel output is found android mixer will downmix

Change-Id: I5858a88033121cf9bdd926ff7d8bf5086c1aef0e
dedupe soft video codecs

Remove superfluous ffmpeg decoders for codecs that can be handled
by OMX.google

Change-Id: Ib3648ab85a1df096bc94b8809eaec8f80687984d
omap4-common: don't run adb as root by default

if needed, adb can be restarted as root with "adb root" after
enabling adb root-access in developer settings.

Change-Id: I7acb5908133824ae9e7258bb957f234936c1b06a
omap4-common: add soft-reboot option

Change-Id: I2d59038d0567eda910a5374af8c65d9b9a8773d9
omap4-common: enable KSM by default

Change-Id: I4349ae23c663d38eb7cd505c24e4614a3e1f89ad
camera: Handle capture request in AF run

camera: Handle capture request in AF run

Bug: 8140969
Change-Id: I1e1889434d57714cdb0c10929609eade299c1ea9
camera: handle switch from AF_RUN to CAMERA_START_VIDEO

Change-Id: I642aab8e69c90121d565ea76071ec73555102377
camera: handle CAMERA_QUERY_BUFFER_SIZE_IMAGE_CAPTURE in VIDEO_AF_STATE

Change-Id: Ib6b7cd411858674f4b9b96076ac71c551687b918
camera: don't drop focus-callback in VIDEO_AF_STATE

Change-Id: If580892f35bdfb4ae7071d34b6194fff3773f30a
camera: don't start AF again in VIDEO_AF_STATE

Change-Id: I148ab5bd10276b6a9e4ce852435a731e1e500554