msm8660: fix samsung dualmic support

Change-Id: Ibd8458e073268ecca4c71114df22c68cbe3455f9
audio/msm8660: add compatibility for the older voice api

  * On QCOM devices without *_ext() functions, add
    -DLEGACY_QCOM_VOICE to COMMON_GLOBAL_CFLAGS

Change-Id: I1866e73baa0023a7f0fd958d31c89f2b7654840c
msm7x27a: Fix building under AOKP

* Remove KERNEL_OBJ paths
* Remove tunneled formats
* Rename platform from 7627a to 7x27a

Change-Id: If8a93f0ef7fa37385a55ace4210a7b06903a9aa3
audio/msm8660: perform null checks audio preprocessing call

Change-Id: I6beaa0e75e1f92d7c6a54b15c56605eb9009fc5c
audio/msm7x30: import 7x30 from ics

Change-Id: I14d97e4ad7e094feaae8c2183ca6cbc53f007d65
audio/msm7x30: add jellybean compatibility

* Change LPA and FM ifdef in newer CAF style
* Updated Policy for jb

Change-Id: Ic5b566d139877e7d63687c15b2bbb55ad336f3f5
audio/msm7x30: Fix for crash during encoding

-SoundRecorder crashes when encoding is starts.
-Read call comes before device selection.
-Add delay to call read after device selection.

Change-Id: I047fbd22da68203212ab5783dd2b59f5740e6bf1
audio/msm7x30: Multiple changes

- Derive AudioPolicyManager and add FM device (port from CAF 8660)
- fix some typos
- remove some definition which are already exposed by kernel header
  (thank's to Nicholas Flintham	to point me on it, it fixes audio
   recording)
- more ifdef

Change-Id: Iebcdaced6bdf3fd474273ad157c4901ba542db06
audio/msm8660: Fix for crash during encoding

-SoundRecorder crashes when encoding is starts.
-Read call comes before device selection.
-Add delay to call read after device selection.

Change-Id: I7e61c05aa3b0fdaebb5c34c6e9a141b40393c714
audio/msm8660: Derive AudioPolicyManager and add FM device

Change-Id: Ib5757dda08d4736c2afe4e2bcbcb1c2fbbf72529
audio/msm8660: ifdef fm for policy

Change-Id: Ib79f31c8875f70085298b3e72c34a3f02017d21c
audio/msm8660: remove local msm_audio_config struct definition

we must use the kernel one

Change-Id: If3b3724a6f78effbfdf28a2aac2dede08e73f458
audio/msm8660: disable caf policy for now

Change-Id: I3ee4c731e821f5fdd3f4b811d74bcecd0f08e494
audio/msm8660: Fix for voice call audio not routing to earpiece

- Voice call audio is routed 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.

(cherry picked from commit 7e6201c76f1d617e024d018119c84504c52c58d3)

Change-Id: Ia9dedc832c30ce5c6f9b252735324e9dbccc334b
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
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 'aokp/jb' into jb

Conflicts:
	alsa_sound/Android.mk