Add support for ICS audio blobs

Change-Id: If0cde8860a5cb1fa63a40787bfe001cf18e9be6d

Conflicts:
	include/hardware_legacy/AudioHardwareInterface.h
hardware_legacy: allow alternative vibrator implementations

The native vibrator code in libhardware_legacy assumes the vibrator
is always controlled by inputting timers into sysfs (at
/sys/class/timed_output/vibrator/enable). This isn't necessarily true,
there's an upcoming device which has the vibrator controlled by ioctl()
calls.

This patch lets the device configuration specify an alternative
vibrator implementation throught the variable BOARD_HAS_VIBRATOR_IMPLEMENTATION

That variable should point to a sourcefile that implements the vibrator
"int sendit(timeout_ms)" function, like this:

BOARD_HAS_VIBRATOR_IMPLEMENTATION := ../../device/vendor/model/vibrator.c

Change-Id: I78d60480f87ef00a0bab096d7f42e47501def936
power: Add DVFS stub

Change-Id: I23837ff88a0a7b23474348b6fe8eee15cfe91e10
wifi: Choose correct nvram file on samsung hardware

Change-Id: I9d428ae61c1ce80d97e6ea513839ed64e8f61440

Conflicts:
	wifi/wifi.c
wifi: support adding p2p0 when starting wpa_supplicant

For TI wlan chips in p2p mode we need this omapzoom cherry-pick
to start p2p0 correctly.

http://www.omapzoom.org/?p=platform/hardware/libhardware_legacy.git;a=commit;h=ccb4c24db795059f1df365d313d80c6b269bc55e
By: Arik Nemtsov <arik@wizery.com>
On: Tue, 31 Jul 2012 21:21:20

Original commit description:
Add p2p0 using an NL80211 command when wpa_supplicant is started, and
p2p_supported is enabled.

Change-Id: Ibc0ad138513f024672642cc5764a81510aa38625
Signed-off-by: Hashcode <hashcode0f@gmail.com>

Conflicts:
	wifi/wifi.c
wifi.c: allow devices to specify driver delay

This is necessary on the Samsung smdk4210 tablets. Without
the delay, it takes roughly 30 seconds to enable wifi.

Change-Id: I6a3419e66958fc72ae60e5294f52124b1180d752
wifi: Add support for AP module args

 * Needed for Samsung's goofy handling of AP mode

Change-Id: I5ec65460b7c9f8ef34170473cf1bdaa36587767b
wifi: fix samsung wifi logic

Change-Id: Ib065c0dffa1265a17f5e4fd6ec0b0ad36bbc7b14
audio_policy: Fix volumes for ICS blob compat

Allow usage of the default audio_policy source, even if the primary
audio HAL is an ICS binary blob

Change-Id: I959a925f458e14380c2e5443b1378c4018d9f084

Conflicts:
	audio/AudioPolicyManagerBase.cpp
wifi: add suport for WIFI_EXT_MODULE

Some wifi modules have dependencies on others (for SDIO, usually).
Use WIFI_EXT_MODULE_PATH to specify such dependencies

Change-Id: Ie8e746c1e69712be78d420d8e8ae8b015564a03d

Conflicts:

	wifi/wifi.c

Change-Id: I3fbc0065f76d91d170fb562159ea326caa4f3345
wifi: add a new "loading" state

Set wlan.driver.status to "loading" in wifi_load_driver to allow
external action being triggered by property change.

Change-Id: Ia4363de4c4e0e1a1c4759f5699fd5ea6e1bc3182
wifi: add support for semcosh nvram

Change-Id: I272607b2835c5df97b8e175a9bcd559b3ec1a105
libhardware_legacy: change DVFS stub dependency

* Make this it's own define, Exynos 5410 uses SAMSUNG_DVFS as well.

Change-Id: I1eed4a8999b1593d030b7e1ae4133937a2720f70
wifi: avoid crash when no phy's are found

Exit gracefully when no phy's are found.

Change-Id: I8c1f57e60bb63b52d8cb086e1a25d8d5b33f03f0
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Added ifndef ICS_AUDIO_BLOB around non-existent functions (2/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: I2ec4dcece3c95c9972ce78f1f7a38fe522dd7802
audio: Support MR1 audio_policy

Change-Id: I1726d18f87fe6a6907bad61bc0de27e17c1237d1
audio: fix no audio when playing dtmf tones

AUDIO_OUTPUT_FLAG_DIRECT is passed for isCompatibleProfile()
which would match incall music profile even for regular dtmf
tones. As a result output stream for incall music case is
selected. Fix by passing the input parameter flags along
with AUDIO_OUTPUT_FLAG_DIRECT.

CRs-fixed: 568696
Change-Id: Ie5a11f21a01c65fb07e9ae1268cf03b6744f9f6e
libhardware_legacy: Add property for A-V playback in offload mode

Add a and check for property for enabline tunnel audio video
playback.

Change-Id: I8ebbfe106feac4a991de05a0db79ac64493d0129
audio: fix no audio playback issue in recorder app

When audio clips recorded using voice recorder app is played,
openoutput() in audio policy manager is called with flags 0 and
will match the incall music profile and try to open incall music
direct output stream. Fix by looking for direct output profiles
only when AUDIO_OUTPUT_FLAG_DIRECT is set in the flags.

Change-Id: I3f6fdec1dfdc4c7642d308108199369cfc6d2409
libhardware_legacy: Add ifdefs for non-QCOM hardware

Change-Id: Ic39f17d4626dc9970edf5c5466b3ccd6d16cbd3e