caf: audio_extn_usb_stop_capture takes 0 arguments

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

Change-Id: Iae72ad211c3fede5508a57f5ca73fa394cfa7841
mm-audio: Fix openmax encoder hang during flush

Flush issued by command thread should unblock the read/write calls
in openmax component.
There is race condition between input/output thread and command
thread in openmax component due to which read/write is not unblocked
which results in a hang.
This change makes command thread to issue multiple flush when it is
wait for ack to avoid a hang.

Change-Id: Ia4486f2e53f56a8413c2115b7f418b29b4bc54c5
CRs-fixed: 466764
 audio: Increase the period size for USB audio

 -During USB audio playback, breaks are heard .This is
  primarily due to overruns of USB buffer from the audio
  HAL.
 -By increasing the period size of USB buffer we are
  avoiding overruns .

  CRs-Fixed: 574897

Change-Id: I78fb1bd5d7201fe789a2fcc5090eb1555af408ea
audio: Add support for AUXPCM BT

Atheros BT chip uses AUXPCM instead of slimbus. Audio HAL has
to use different UCM files depending on whether it's
internal or external BT chip

Change-Id: If6580ea1608b9dc8bb24be58dd2c4d2bbc331f92
hal: Remove extra checks for proprietary features

 * If headers available, build it.

Change-Id: I31481e3e810706b6050f409e38c11620532f158a
hal: Minor usb stability fix

- Adding buffer of one byte for the strstr usecase to make
  the passed string is NULL terminated.

Change-Id: Ief8531e149b05f4020cb1338110bbfad4a74f7d0
Crs-fixed: 607454
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
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
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
hal: Add suport for dedicated VoIP devices

 * Some devices out there have dedicated paths for VoIP, add support
   for these by setting the system property.

Change-Id: I59cd97e78427f811559081a04151c9a2eccf452f
hal: Port fixes and features to msm8960 variant

Change-Id: I5c7a9ea64f4d6fc9e00e784bb36e208d7310fb5c
hal: Add support for PCM in offload path

- Translate PCM Offload format to pcm codec id
- Set 16/24 sub format id in compress params format
- Calculate offload fragment size for pcm
- Move offload calculation functions to platform file
- Update audio policy manager isOffloadSupported
  for pcm offload profile. Use audio.offload.pcm.enable

Change-Id: I2064d646b66e8283fce2cc736e96fb93cba0a552
hal: Fix memory leak in HAL debug logs

String returned from str_parms_to_str for set/get parameter in
debug logs is not de-allocated. Fix is to make sure the memory
allocated for set parameter key value pair is de-allocated.

CRs-Fixed: 610079
Change-Id: I5027d8f1741c9e7223e7b4721f8d5473404998d3
hal: fix a bug introduced as part of changes done for fixing memroy leak

The return value of platform_get_parameters() is getting freed up
wrongly which is fixed now. This bug was introduced as part of the
gerrit-id 611791.

Change-Id: I61e4f5abc732fbe84702452e27cde7c1c36f77e6
hal: Update the correct channel count for dolby configuration

-Wfd supports both 5.1 and stereo. Based on the sink capabilities
 update the correct channel count for dolby configuration for wfd.

CRs-Fixed: 609429
Change-Id: I85b81ba7db7134a6781007393f0f3c2adb5ea138
hal: set Dolby DMID for low latency playback

- Remove additional check to set Dolby DMID
  for low latency playback. DMID should
  be set for all playback use cases.

Change-Id: Ia93e1b13cc61145148a1bf520a222f8e480b3e2b
CRs-Fixed: 620246
hal: Fix for down-mixing of multi-ch offload playback

- Check if multi-ch playback in offload path is active
 before re-configuring the HDMI channels

Change-Id: If3639ffbbbc56083f9d09257ea4fafdc2b204e76
CRs-Fixed: 622339
hal: Enhance compress offload logging

Add/Enable msg logging
-Salient funtion calls to tinycompress
-Salient funtion calls from frameworks
-Events sent to frameworks
-miscellaneous important events

Change-Id: I493d98d3f3c1216f7c6030a539e01d1f2dd8c202