AudioPolicy: Add support for USB capture

Adding support for USB capture. Currenlty assuming all the USB
headsets have capture capability.
Porting from ICS to JB.

Change-Id: I6cc49d02a5ba689856df99c0a4ffb8f94b6e3fb1
Signed-off-by: Karimuddin sayed <sayed.karimuddin@ti.com>
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
FM Rx: FM Radio support in Android Audio framework

Added the FM Rx radio changes for opening the capture path and playback path
for FM Rx device
Ported from ICS to JB.

Change-Id: Ibbaff3d9b0e7ada320ce60b55e07b25de95df861
Signed-off-by: Shitiz Kumar <shitiz_kumar@ti.com>
BT HF Tx: Modified the AudioPolicyManager for BT HF MM Streaming

The patch changes the audio routing policy once the SCO connection is
established. Once SCO connection gets established the media stream gets
routed to BT SCO headset as per BT SCO MM use case.
The patch is pulled in from commit b23f556b4e542eff5351609ba895177be861e3bc
from gingerbread branch.
Cherry-pick from ICS.

Change-Id: Iea64d8e4eca1a0eadb526f290935c81156f30bf2
Signed-off-by: Shitiz Kumar <shitiz_kumar@ti.com>
FM Tx: FM Tx routing support in Android Audio framework

Added the FM Tx routing policy in HAL and also added FM definitions
in HAL.
Porting from ICS to JB

Change-Id: If0c9c2d4c6c621a2ad3ff776eb2b49e3c8142e7b
Signed-off-by: Shitiz Kumar <shitiz_kumar@ti.com>
Audio Policy: Improve policy for fm radio

Add provision for muting fm radio.
Add knowledge of active fm radio playback to policy by incrementing
the music stream type reference count for the audio output.
Ported from ICS to JB.

Change-Id: I9aee9d9efa1525812adb1bde1332a8c94ce00831
Signed-off-by: Bryan Honza <honza@ti.com>
wifi: support adding p2p0 when starting wpa_supplicant

Add p2p0 using an NL80211 command when wpa_supplicant is started, and
p2p_supported is enabled.

Change-Id: I9160d8b0c71622a3bde42c18ebc06bb90ed18808
Signed-off-by: Arik Nemtsov <arik@wizery.com>
[vishalm@ti.com: Added the changes inside ifdef]
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Merge branch 'p-jb-release' of git://git.omapzoom.org/platform/hardware/libhardware_legacy into jellybean
AudioPolicy: Mute FM radio using overall mute counter.

This mutes/unmutes FM radio using not the input parameter
itself but mute counter for MUSIC stream that is more
correct and is like everywhere else in setStreamMute
function.

Change-Id: I0af1afccaf5b5d75c7eaca32672a06044ff2dd1a
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
fix merge w/ CM

Change-Id: I8cd60eb8afce00cccff8d21b021eb7b3b2f5cc6d
Merge branch 'p-jb-release' of git://git.omapzoom.org/platform/hardware/libhardware_legacy into jellybean
fix bad merge

Change-Id: Ie4d66453e241968b064c2d59d69a4ccce86bd41b
Merge branch 'jellybean' of git://github.com/STS-Dev-Team/android_hardware_libhardware_legacy into jellybean
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_hardware_libhardware_legacy into jellybean
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_hardware_libhardware_legacy into jellybean
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_hardware_libhardware_legacy into jellybean
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_hardware_libhardware_legacy into jellybean
audio policy: Update channelMask for AUDIO_SOURCE_VOICE_CALL

The voice call record is Mono with the current implementation.
CHANNEL_IN_MONO is set as channelMask for the voice call input source.

Change-Id: Id654d80e2a1dc31742aeb1a4f51e9304e39137a2
Signed-off-by: Pierre Moos <p-moos@ti.com>
Merge branch 'p-jb-release' of git://git.omapzoom.org/platform/hardware/libhardware_legacy into jellybean
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_hardware_libhardware_legacy into jellybean
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_hardware_libhardware_legacy into jellybean