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"
Policy Hal:  Fix video stutters.

  NULL cannot be used as a third arg for property_get.
  This was causing the offload properties to be ignored
  forcing offload during streaming video.
   Thank you Arcee

Change-Id: I34cb6ffb60a11ad0eb346c99ce7ec96f323c54ae
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
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0