audio: msm8960: add extra sound usecases for in-call usage

Add support for use cases suffixed with "Voice" for in-call usage.
HTC MSM8960 devices seem to rely on ACDB to enable in-call echo
cancellation. This requires additional devices with different ACDB IDs
in the current msm8960 audio implementation.

Change-Id: I559de8cdefe7af10c95f50b46283e87688d65e5a
mm-audio: Revert csd-client related commits
We do not have csd-client, nor do we need it currently.

Revert "alsa_sound: Define csd-client flag to enable voice call on Fusion3"

This reverts commit 5b2c92762b0070eb2a887830b3e802ca6819aa91.

Revert "alsa_sound: enable csd-client for fusion3 voice call"

This reverts commit dd36f0775a9d9f57b3db3c2f6637a79177a33f3e.
We do not have csd-client.
audio: msm8960: fix ACDB for MSM8960 audio

Squash of the following commits to fix and enable ACDB using the
BOARD_USES_QCOM_HARDWARE flag:

audio: msm8960: update alsa_sound build to include libacdbloader

Change-Id: Ic28b2345f3e8616393e3052eb7489e87894728d3

audio: msm8960: add workaround for prebuilt libacdbloader

Jellybean expects the presence of headers for every linked library,
which doesn't account for linking against prebuilt libraries. Create and
touch the exported includes directory for libacdbloader as a workaround.

Change-Id: If79a5d38691fcdb725be31b13f8a92f89150f356
alsa_sound: Fixed in-call audio with wired headsets

Function getUCMDevice didn't return the correct use_case because
it was ifdef'ed with QCOM_ANC_HEADSET_ENABLED.

Change-Id: I84d6082131f77b7748d343a3d19cba3ddf54d0a6
AudioHardwareALSA: Add SGLTE support in HAL.

Change-Id: Ia7824001c1773cef91172d6d17da45590aa625c5
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
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
alsa_sound: Send the correct channelcount to HAL

-send the correct channel count to HAL in case of getInputBufferSize function

Change-Id: Ic6bbcda021601ba7b0515c3ce9761d54d2f19dd7
audio_policy: Add channelmask for voice call recording

Add channelmask for voice call uplink and downlink recording
Add earpiece as output device in global configuration

Change-Id: I514daf0e1468351c7451171e08f0c7f192e4fded

Conflicts:
	alsa_sound/audio_policy.conf
audio/8660: htc and aic3254 support

Manual merge from:
https://github.com/CyanogenMod/android_hardware_qcom_media/commit/fcdb4544137016768a254ad98e84413f06a850d0
https://github.com/CyanogenMod/android_hardware_qcom_media/commit/3bb5ce02e9e0b584799c0b40a7f56c1f75c0cf3e
https://github.com/CyanogenMod/android_hardware_qcom_media/commit/dab964148c7c03940c4e4f50de0ee88901e8e32f
https://github.com/CyanogenMod/android_hardware_qcom_media/commit/553f67cb3b93f42eca9bf0905963a4633b8f5b2c
https://github.com/CyanogenMod/android_hardware_qcom_media/commit/be21514903b2f7dae72a87296dcd350426fc5e53
https://github.com/CyanogenMod/android_hardware_qcom_media/commit/61fffa65025c5f2478104009daf1c1f6c6c53d73

Patchset 2:
* Removed incorrectly reference patches above.
* Missed an ifdef for htc.

Patchset 3:
* Change ifdef to HTC_ACOUSTIC_AUDIO for devices that use lib_htc_acoustic

Patchset 4:
* Fix whitespace

Patchset 5:
* Missed patch (updateDeviceInfo part): https://github.com/CyanogenMod/android_hardware_qcom_media/commit/03326075ab0a95a7cd2f968296e258da2b8b08c3

Conflicts:

	msm8660/AudioHardware.cpp

Change-Id: I955ba1c58bf0f686f6e90e1c078fb6058db4c96a
audio/msm8660: enable legacy voice and HTC acoustic for HTC boards

Change-Id: I093a7c7c159c910ec66e980345231d119516cad4
audio: msm8960: ifdef csd-client usage

Change-Id: Ieebbfaeb9167bfbffef6729014b642edfe420e68
alsa_sound: Send the correct channelcount to HAL

-send the correct channel count to HAL in case of getInputBufferSize function.

Change-Id: Ic6bbcda021601ba7b0515c3ce9761d54d2f19dd7
Merge remote-tracking branch 'cyan/jellybean' into jellybean