audio: Additional "don't depend on kernel objects."

Add a few more missed in Ibd800ec1f50cb7b3617285c51dfaed020653d206.
alsa_sound: Add option to disable dualmic for speakerphone

 * This combination causes in-call echo on D2. Stock firmware appears to
   enable the Audience chip in this case, but we don't support that yet.
 * Use the normal mic if SAMSUNG_AUDIO is set.

Change-Id: I44cd1e1f3024f46f71c83f41d1d911193afcb80b
alsa_sound: Add support for Audience A2220 chip

 * Audience A2220 is the noise cancellation chip found on many new
   devices. Add a board flag to enable it's use. The chip will be
   enabled during voice calls that use the dual mic path.

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