hal: Use new acdb-loader init api

Use acdb_loader_init_v2 instead of acdb_loader_init_ACDB.
The new v2 api allows the codec name to be passed to
acdb-loader allowing the calibration files to be selected
based on the codec name.

Change-Id: Ib596111902b5e873fe9c770ced36dadd4d001232
hal: Fix input device selection for stereo recording

Only if the fluence type is dual mic or quad mic and the channel
count is 2, the dmic device is selected as input device.

Change-Id: I22f9d2f154e9b6348ef547ff68014b5e68ae7e5f
CRs-fixed: 599947
audio: update the vifeedback pcm device id

Due to changes in machine driver pcm device id has changed.
Change updates pcm device id for vifeedback usecase.

Change-Id: I75323f80b07fda9cf21d9aef09e4849d767c11b9
CRs-fixed: 602026
hal: fix a memeory leak caused by using str_parms_to_str()

str_parms_to_str() requires the caller to free() the
returned string. Free the memory pointed to by "str"
before overwriting the "str" with the new pointer which
is returned by strdup() function.

Change-Id: I602ae37cce684e0c62b0ec310080bb0cd675e35a
CRs-fixed: 608384
audio: Changes to support AV streaming in offload path

- Widevine sends ADTS data, set ADTS based on the parameter
- Set offload fragment size 2k for all video streaming

Change-Id: I4c2376408e2998354db583a9f54649476a880f01
Merge "hal: Use new acdb-loader init api"
Merge "audio: Changes to support AV streaming in offload path"
Merge "audio: update the vifeedback pcm device id"
Merge "hal: fix a memeory leak caused by using str_parms_to_str()"
Merge "hal: Fix input device selection for stereo recording"
Merge branch 'kk' of git://codeaurora.org/platform/hardware/qcom/audio into cm-11.0

Change-Id: Idd8552295ea37acd3bbb6a5c5ebce22ce708b66b
mm-audio: Add some guards around legacy libraries

Change-Id: Iae72ad211c3fede5508a57f5ca73fa394cfa7841
Revert "hal: Use new acdb-loader init api"

This reverts commit 490d347a424fc95dbe5974a1c9fc80404e19a2a5.

Change-Id: Ib40868052574323d581d67179ad78b877b6ab96f
Revert "audio-caf: legacy: Sync FM flag with ALSA"

This reverts commit 761a36f17b4ef4a6d2ca98c5f7b52c993007a947.
Revert "audio-caf: Remove STE fmradio"

This reverts commit 1898778aed29cd375d7a67f799d2ad943b9f5191.
Revert "audio-caf: resurrect msm7x30 audio"

This reverts commit 5dc4018be394e44b385583f116d334177094bc9a.
Import msm7630 audio HAL from jb_2.5.3 branch

Squashed import of the following CAF commits:

a0947f8 audio/msm7630: Initial commit for MR1 Audio bringup.
67550d7 audio: compile only if TARGET_USES_QCOM_MM_AUDIO set to true
51e24b7 msm7630 : Propagate the flag value to status
4642b91 Remove audio_poliy.conf from msm7630
b982f5a audio/8655: Enabling LPA playback by adding AudioSessionOutLPA class
fef3c65 audio/msm8655: Fix for AAC recording failure.
eeae23f msm7630 : Send proper channleMask for getInputProfile()
fe2acf4 Update copyright to The Linux Foundation
4931e2c audio/msm7630: Add usb audio hal profile.
04bcc5f audio/msm7630: Fix for volume change during voice call
58de776 7x30 : Port heap mask change to ion
c0a97d0 audio/msm7630: Fix the issue of voice call when HDMI connected
223c325 audio/msm7630: Fix to enable TTY device
387befb audio/msm7630: Add latency support for LPA
701b6c6 audio/msm7630: Fix for routing camcorded encoded clip audio to wired headset
a20c757 audio/msm7630: Fix for back to back VOIP calls failure
8f6be8a audio/msm7630 : Stability issue with LPA play back.

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
legacy/msm7x30: Use CM standard qcom naming
Fix build in CM

* Build without qcom audio calibration
* Hack for prebuilt libraries we don't have access to
* Little cleanup of makefile
audio/msm7x30: Fix log tags and disable debug logging

Change-Id: I4712b09c86e3a067b0c847661fa43828be6eee23