hal: mpq:  configure HDMI channel number

Fixed the issue that HDMI channel number was not configured
from audio HAL

Change-Id: Ibd141befb677ef4a00c4c4a14f0d6e58c225acbd
hal_mpq: Add the SPDIF device entry

Add the SPDIF device entry.

Change-Id: I865c65a150e713586adebb1541055feacaadcdf0
hal: Send device based parameters for DAP and DDP

Send device based parameters for DAP and DDP

Change-Id: I2cb977a573a3065f121d7aa096355ebda15f5948
hal: Add XML parser for platform info

Add XML parser which parses the platform_info.xml
on the device. That xml contains ACDB ID information
and is populated from the device project folder to
the /etc folder on the device. It is used to overwrite
hardcoded ACDB ID's in platform.c.

Change-Id: I86419bf0f48bcf7f0125da58626adab1d23fa50a
hal: Update USB headset ACDB ID

USB headset ACDB ID is set to 0. Update
it to right value.

Change-Id: Ia634750d0d77078077a4e2758c01bb9a6ec39ea0
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
audio: mpq: enable volume control for offload playback

Enable set_compress_volume to apply volume on offload
playback sessions.

Change-Id: I89631dff192f02988b7613ae07b5b112e420c287
hal : Send drain to the driver if next track returns error

-Partial drain is send to the driver after next track ioctl.
-If next track times out or returns any error then call drain.
-Partial drain will not  be executed if next track fails.

CRs-Fixed: 594977
Change-Id: I0665f21a5ea01f7776408b5155344f542021c299
hal: Reduce the deep buffer period count.

-Deep buffer period count in the driver is 8. This adds to latency
 of 160ms. This also results in the common block to have 8 buffers.
-The total latency used for AV sync is 320ms. AV sync issues are
 seen due to this big latency
-Reduce the deep buffer cound from 8 to 4. This would reduce the
 latency.

CRs-Fixed: 598792
Change-Id: I1c057ee9d7c8a8cb747661e3dc62c9f44bf9ee79
hal: Add static internal function at the top of the file

-Add check_and_set_gapless_mode and get_offload_buffer_size functions
 at the begining of hal file.

Change-Id: I134dffac4aa81ed52fc6a2668cb53fbda60103ca
post_proc: Enable effects param in DSP to start effect

-During switch to tunnel playback, offload effects-flags remain
disabled. This stops effects being applied on tunnel playback.
-Send effects enable params to DSP to start effects during switch.

Change-Id: Ibe1e50b41ca25b51537e4a0ad80dbd5184379133
CRs-Fixed: 593509
Merge "hal: mpq:  configure HDMI channel number"
Merge "hal: Add XML parser for platform info"
Merge "hal_mpq: Add the SPDIF device entry"
Merge "audio: mpq: enable volume control for offload playback"
Merge "hal: Update USB headset ACDB ID"
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
Merge "hal: Send device based parameters for DAP and DDP"
policy_hal: Correct device selection in STRATEGY_ENFORCED_AUDIBLE

- When strategy is STRATEGY_ENFORCED_AUDIBLE, do not select
  unsupported combo devices Proxy+Speaker, HDMI+Speaker,
  and FM_TX + Speaker.

Change-Id: Icd4f6de74807a6efc5f6eb8258c020ad990aaf9b
Crs-fixed: 600799
post_proc: disable adsp reverb when preset is 'None'

Audio HAL set corresponding preset id into adsp, but doesn't disabe
reverb explicitly when 'None' preset is chosen. However, preset=0
means custom preset in adsp, so adsp won't stop reverb processing.

Change-Id: I0c42dd13c09579a6bd3bef2141b857477ec65f2e
CRs-Fixed: 604982