alsa_sound: Read system prop to set fluence type

- Set default fluence type to none
- Read fluence type system property to set fluence audio parameter

Change-Id: I11d569789791331fd53d98584ca415053330dd9a
(cherry picked from commit 375600d25a8af4ed3273efc3f7dd73d9d6f10bde)
aenc-aac: Reduce insane log verbosity

Change-Id: Ic2bb6849b11de23b1ef95cdd276a3091f901ed1b
audio: Various fixes for Samsung msm8960 devices

 * Enable the A2220 after the device switch. This fixes the delay when
   answering a call.
 * Use the sub mic when using speakerphone. This fixes the echo that the
   caller heard previously.
 * Use the voice speaker device for calls. This improves sound quality.

Change-Id: If87085d546433b92aa3c9bfec1f0ecf7cde2666c
audio/msm8660 : Implement low power audio in Audio HAL

Implement AudioSessionOutLPA for low power audio

Change-Id: Ib852ec6ce27baf0fc434e18246ad5c726551e06c
audio/msm8660: Enable VOIP calls

(cherry picked from commit 77181488d93f4de9dda4db2f98b3abb4fa4c6151)

Change-Id: I22fd8657c0699d023a3d1d2bcc1c9a074287a316
audio/msm8660: misc fix

* define voip session name
* remove unknown escape sequence

Change-Id: I8bd3904c00ed04dc525dcc742556a3fa0379b360
Revert "audio/msm8660: disable caf policy for now"

This reverts commit 2770b4a0702cbde3f2537943ed8f7330fdcc709b.
audio/msm8660: allow building with LPA

build only HW part, policy is currently broken

Change-Id: I448df921aaa768f1f2e98c30e61ba60e8c3e472b
audio/msm8660: Fix to use low power audio session for MP3 and AAC clips

- MP3 and AAC files are failed to play through low power audio.
- Due to incorrect check, audio session for low power audio is not
created and failed to play the clips.
- Added proper check to create audio session for low power audio clips.

(cherry picked from commit 24687411e6d9ee0aa8a996d7e6389faa5ece44d3)

Change-Id: I9e8f4647fa2de1e2cb586b90995740dd72ef04be
audio/msm8660: Add ANC headset support

- Add ANC headset support in policy manager
- Add ANC device profile

(cherry picked from commit 9bd64ad6f3de9ddb1002971af5208b1c23c05469)

Change-Id: I60205237e1cde3bae5eb34a7ff7ee058fa89cc58
audio/msm8660: fix build after ANC patch

Change-Id: Ied57ab5aacefd1fabc546a5f743a1134c337e6f8
audio/msm8660: underp routing/ifdef

CAF code have a useless "if" which check for FM stream, but in
every case it run the same code
Remove the wrong "ifdef" and the useless "if" to get the right
routing

Change-Id: I24b64e307e40e4d06c873f2b66ab3f2ae14dc1de
audio/msm8660: Fix for native crash during LPA swith to BT.

- During swith the Reset() fruntion of AudioSessionOutLPA is getting
  called twice this is resulting in NULL pointer dereference.
- Fix is to avoid calling reset twice, it will get called for
  AudioSessionOutLPA::stop() and that should be enough, also
  add a check to avoid NULL pointer de-refrence.

Change-Id: I86821da655529a8d1fc2c32d60e2c530cc6bbf69
audio/msm8660: ifdef ANC

allow building without ANC

Change-Id: I8adef70849f6fc9667ebc936327262dee5236689
audio/msm8660: Fix for LPA playback stops  when suspend happens

-On suspend, LPA playback stops
-Suspend event handling stops the LPA driver
-Ignore suspend event when LPA playback is not pause.

(cherry picked from commit c11df1d6bb4825437e856441f43e4ab1d4f39cac)

Change-Id: I9db361989c34bc025e68a5db372f211120830777
audio/msm8660: always show device list

also display not used path

Change-Id: I9d97728b9275b9cf15f771e48e927ab8d7d0f595
audio/msm8660: add ifdefs around LPA implementation

Change-Id: I83214455102200db456433068a9bf217da6e367f
audio/msm8660: enable QCOM_ACDB_ENABLED CFLAG for QCOM_HARDWARE

Change-Id: Ibe54b96e042e3476ce62151a45bfc0bd16e3ae66
alsa_sound: merge HTC cases with existing usage cases

Change-Id: I1dc141989929e9c51a6dc784f1c9946b562670e1
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

Patchset 6:
* Set volume and enable voice for calls.

Patchset 7:
* Set mRecordState such that audio input will start.

Patchset 8:
* Fix ifdefing for audio recording

Change-Id: I955ba1c58bf0f686f6e90e1c078fb6058db4c96a