audio/msm7x30: Add missing volume offset value

Change-Id: Ic99c1531a8b7087ebb110201d3fbae9f969faffc
audio/msm7x30: Add channel mask for voice call recording

- Voice call record is failed to record.
- In channel mask uplink and downlink entry is missing
- Add uplink/downlink in channel mask and voice call
  in global configuration.

Change-Id: Id56f167c342eea4e3c7704b9578409afce23598b
audio/msm8660: Add channel mask for voice call recording

- Voice call record is failed to record.
- In channel mask uplink and downlink entry is missing
- Add uplink/downlink in channel mask and voice call
  in global configuration.

CRs-Fixed: 382736
(cherry picked from commit 505ac6f14f1b70fb0f52bbf53c0ca844ae66d271)

Change-Id: Id3a1d5346b07addb0d44add3cd030c75e5c9e3d0
audio/msm7627a: Fix for audio routing to headset and earpiece

- Audio is being heard on target speaker even when
headset/headphone is connected to the device
- TTY mode variable is not initialized to off by
default in constructor. With the garbage value while
in call trying to set TTY devices.
- Set TTY mode variable to off by default in constructor

Change-Id: If0bbf97ff674643c89c7cc163a5b5c0b157ec9e6
CRs-Fixed: 379340
audio/msm7627a: Fix for voice call audio routing to earpiece

- Voice call audio is being heard on speaker even when
earpiece is connected to the device.
- Earpiece is default attached device to target. Entry for
earpiece as global attached output device is missing.
- Add earpiece as global attached output device in
audio policy config file.

Change-Id: I80903bd37efd79e7836a9ebd46b039b8d8f151d1
CRs-Fixed: 379340
audio/msm7627a: Fix for voip call failure on speaker.

-Voip call on speaker fails.
-Speaker device is not made available in audio_policy.conf file
 this is a side effect to earlier fix.
-Make both the speaker and earpiece available in policy conf file.

(cherry picked from commit 21d8c479999368d4366ab535c60a13a6118ceb89)

Change-Id: Ic839f3ef54e359bc382da54715b02980fde1aa08
audio/msm7627a: Fix for Mute not working in VoIP call

- In VoIp call mute option is not working
- Due to wrong device selection, PCM recording path is selected, instead
 of MVS Tx path, for VoIP tx.
- Enable MVS Tx path for VoIP uplink.

CRs-Fixed: 390742
(cherry picked from commit 833bca91f6f3e7bfdbb7ff9f8773fe49ef531614)

Change-Id: I282f5c27b4461c623cb0736926d4e317ee038a33
Merge "audio/msm7x30: Add channel mask for voice call recording" into jellybean
Merge "audio/msm7x30: Add missing volume offset value" into jellybean
alsa_sound: Do not stop A2DP playback if routing to input devices

-Issues: No audio playback on A2DP headset during VOIP(Skype) call
-Causes: Skype uses built-in Mic/A2DP as I/O devices, A2DP playback
 is closed while switching device to built-in Mic.
-Fixes: in doRouting(), do not stop A2DP playback if routing to
 input devices.

Change-Id: Iefada0764c04622a082ab50adff24cc160a97dd8
CRs-fixed: 407888
alsa_sound: Fix for music freeze on FWD from BT

- While audio playback on a2dp, press NEXT on
  A2DP headset. This results in UI freeze for
  5sec
- Fixed the issue by alternating sequence of
  closing PCM and Proxy drivers.

Change-Id: I7bebd420c166ce76afe873732f260741c55dff99
CRs-fixed: 405332
alsa_sound: Fix for LPA Audio loss during BT on/off

-Issue:If LPA playback started on speaker and connect/disconnect
 BT multiple times results audio loss. This happens because of
 stopA2DPplayback called with NULL usecase
-Fixed by assign right usecase to mUseCase if it is not already assigned

Change-Id: I95c28ed159684f7b653d14284514d4969666bd75
hardware/alsa_sound: Synchronize voice path setup

Block the policy manager until the voice path is setup. This is
done to prevent telephony from signaling call connect before the
entire voice path is established.

Change-Id: I25f6ca3199d9818f0e36a05bc0364a8c28e75650
CRs-fixed: 402673
Hardware/alsa_sound: Set the BT volume based on VGS

When VGS is set, we expect volume change to be performed on
BT device. Otherwise, volume change is applied by DSP

Change-Id: I76c3fde90b5e879278e94610e8af4abd07615cf0
CRs-Fixed: 366872
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_hardware_qcom_audio into jellybean
Merge branch 'jellybean' into jb