omap4-common: fix wifi/p2p-config

use right config-file for wifi and p2p and enable p2p on the
p2p-interface

Change-Id: I3add89572ebd3d14bd1d56b77702dac7bf64184f
omap4-common: switch wpa_supplicant back to the normal version

this is needed to fix wifi instability and high power-usage
caused by a change to the wpa_supplicant_lib.

Change-Id: Ia4f12fd36f22e4266ef68141f6d18e1fe333a432
overlay: restore Verizon specific eri.xml locally

Change-Id: Ide1843cd64aa87a632d16ec5e0f2b81a4a80b5ea
omap4-common: don't spam the logfile when changing scaling governors

only log a failed write to the boostpulse_fd once and then retry
opening it, instead of logging the failed write for every touchscreen
interaction.

Change-Id: I8a2d0741819b477ba260a6ac44f3295ba865ab94
omap4-common: update alsa-lib to 1.0.27.2

Change-Id: Ieeddf131638888c81026ef5cd4cbfe05f65cc39b
audio: Add a separate HAL for HDMI audio

Creating an audio HAL for HDMI because:

  * The HDMI card is already a separate card from
    the OMAP ABE audio.

  * The needs of HDMI are getting more specialized
    (e.g. things like multichannel audio, bitstream
    audio, etc.)

  * Things in the OMAP ABE HAL are getting a bit
    cramped and complex, and it would be better to
    reduce the complexity rather than add to it.

This version is provides the same functionality as audio_hw.c

Change-Id: Ifcf1cca4f7f49bcabc14c20105a9ddc40f2e33e3
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
audio: hdmi: add dynamic multichannel support

This patch parses the HDMI EDID to find the capabilites of the sink
device.  It communicates this information to Android so that it can
make the proper decisions about routing multichannel streams.

When parsing the EDID we look for:

  * Audio Bit (whether or not sink supports audio)

  * Speaker Allocation Data Block (if any), which
    declares which speakers are attached to the sink.

  * Audio Data Allocation Block (if any), which
    declares extended capabilities not implied by the
    Audio Bit.

The speaker allocation block is parsed to see which channel profiles
it supports (stereo, quad, surround, 5.1, and 7.1).

Change-Id: Ic2ff57acd8f1d4b92ca4034e2a5800d0b69a3e05
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
omap4-common: force landscape when hdmi is connected

Change-Id: Ia74759f72771fd077482e66d99c55507feea7057
omap4-common: add media.stagefright.cache-params to fix play movies

Change-Id: I5de2e3f52f938158afa882a851a9b0592b2e5b7d
omap4-common: libpower: add POWER_HINT_CPU_BOOST and fix locking

Change-Id: I9faa2401cec7403dfd9aae8d9b242833951563d2
omap4-common: fix ttyO1-permissions for whisper(dock)-service

Change-Id: I553247b275f5b6c4e419c5676a6d75b672db4ebf
omap4-common: enable analog dock-audio

Change-Id: I3b4dd94db11a2c72714052ef16fd8f6996204006
omap4-common: ALSA: make sure to return from poll()

Change-Id: Ib1fc8f1f4c988450ba13a5add3af33e0d26d7d2c
omap4-common: HDMI: honor preferred-flag on video-mode

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