hal: Support config selection for playback on speaker

Support bit width selection for playback on speakers based on
platform info.

Change-Id: I8dd2cc7049186e7468615a43db550d7d580a81d1
hal: Add changes for dolby DS2

-Add device to back end mapping for APQ8084 and MSM8994.
-Set initialization info like sound card number, dmid
 to ds2 dap hal.
-Add mixer control DS2 OnOff to enable or disable DS2
-A property "audio.dolby.ds2.enabled" is added to trigger
 the mixer control.
-Reuse ds1 functions for checking dolby format and getting
 sound codec id.

CRs-Fixed: 661095 661018

Conflicts:
	hal/audio_hw.c
        hal/msm8916/platform.c

Change-Id: Iff5fdc49249eb035c2ccde18e190ccc6c3ff632a
hal: Add support for multiple hardware variants for DB8094


Add supports for multiple hardware variants such as front panel
line out jack, back panel line out jack, front panel microphone jack.
It require audio HAL to select corresponding entry in the mixer_paths.xml
file based on HW information.

Change-Id: Ifd73e4093ab46fe248aacc1f8c0dcebd3211dea7
policy_hal: Update custom policy manager to new base class

Update the custom policy manager to be based on AudioPolicyManager
class frameworks/av/services/audiopolicy.

Change-Id: I3c2a73f36d60eefbb1c26d530f74d3dfc2b28ac5
Merge "hal: Add changes for dolby DS2"
Merge "hal: Support config selection for playback on speaker"
hal: add support for low-latency capture

 Enable low latency use-case for Bear family

CRs-Fixed: 752390
Change-Id: I7cac5a0166ee9e19ab8753f567bde712ca36ebb3
Merge "policy_hal: Update custom policy manager to new base class"
hal: Define a new combo device for AANC and Fluence

Define a new combo device for AANC and Fluence

Change-Id: I0b67629014e92243ab654c2df6e8c23090048090
Merge "hal: add support for low-latency capture"
Merge "hal: Define a new combo device for AANC and Fluence"
hal: Check for multiple offload usecases

While checking if a usecase is compressed offload, consider
concurrent multiple offload usecases

Change-Id: If01424137d4d5640e97ead58f151300a168f0912
Merge "hal: Add support for multiple hardware variants for DB8094"
hal: Add support for 8909 QRD skua/skuc

- Add entry for 8909 QRD skua/skuc sound card name

Change-Id: I40bda351a9fc2b466ad65cb26074383d075c28e7
Merge "hal: Check for multiple offload usecases"
Merge "hal: Add support for 8909 QRD skua/skuc"
hal: use 0 as default return value for out_get_render_position

- Initialize default return value of out_get_render_position to
  0(NO_ERROR).
- Default value(NO_ERROR) will be used if timestamp query happens
  before compress driver is opened. Return 0(NO_ERROR) in this case
  to avoid playback failures.

Change-Id: I0f8b2e0f19cfe736a19934ddef18016599ec582c
CRs-Fixed: 756508
Merge "hal: use 0 as default return value for out_get_render_position"
hal: Add API to set & get audio calibration

added base64 encode and decode utility functions
Add API to set & get audio calibration.
Use audiocal for set & get key.

Change-Id: I2ea3362a75bd99018f404d8cf0771efa0a2aabf7
Merge "hal: Add API to set & get audio calibration"